|
From: | Richard Henderson |
Subject: | Re: [PATCH v2 13/14] target/riscv: Don't save pc when exception return |
Date: | Wed, 10 Nov 2021 12:25:54 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 |
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 <zhiwei_liu@c-sky.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> --- 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~
[Prev in Thread] | Current Thread | [Next in Thread] |