Re: [PATCH v3 04/20] target/riscv: Extend pc for runtime pc write

2021-11-11 Thread Richard Henderson
On 11/11/21 6:57 AM, LIU Zhiwei wrote: In some cases, we must restore the guest PC to the address of the start of the TB, such as when the instruction counter hits zero. So extend pc register according to current xlen for these cases. Signed-off-by: LIU Zhiwei --- target/riscv/cpu.c| 2

[PATCH v3 04/20] target/riscv: Extend pc for runtime pc write

2021-11-10 Thread LIU Zhiwei
In some cases, we must restore the guest PC to the address of the start of the TB, such as when the instruction counter hits zero. So extend pc register according to current xlen for these cases. Signed-off-by: LIU Zhiwei --- target/riscv/cpu.c| 22 +++--- target/riscv/cp