On 11/10/21 8:04 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 <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
---
  target/riscv/helper.h                          | 4 ++--
  target/riscv/insn_trans/trans_privileged.c.inc | 7 ++-----
  target/riscv/op_helper.c                       | 4 ++--
  3 files changed, 6 insertions(+), 9 deletions(-)

This should be ordered before patch 1, so that it does not appear that you have missed places that should use gen_set_pc.


r~

Reply via email to