Re: [PATCH 12/13] target/riscv: Don't save pc when exception return

2021-11-01 Thread Richard Henderson
On 11/1/21 6:01 AM, LIU Zhiwei wrote: As pc will be written by the xepc in exception return, just ignore pc in translation. Signed-off-by: LIU Zhiwei --- target/riscv/helper.h | 4 ++-- target/riscv/insn_trans/trans_privileged.c.inc | 7 ++- target/riscv/op_helpe

[PATCH 12/13] target/riscv: Don't save pc when exception return

2021-11-01 Thread LIU Zhiwei
As pc will be written by the xepc in exception return, just ignore pc in translation. Signed-off-by: LIU Zhiwei --- target/riscv/helper.h | 4 ++-- target/riscv/insn_trans/trans_privileged.c.inc | 7 ++- target/riscv/op_helper.c | 4 ++-- 3 file