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<zhiwei_...@c-sky.com>
---
  target/riscv/cpu.c        | 22 +++++++++++++++++++---
  target/riscv/cpu.h        |  2 ++
  target/riscv/cpu_helper.c |  2 +-
  3 files changed, 22 insertions(+), 4 deletions(-)

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

r~

Reply via email to