qemu-riscv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Richard Henderson
Subject: Re: [PATCH v3 04/20] target/riscv: Extend pc for runtime pc write
Date: Thu, 11 Nov 2021 12:19:03 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

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_liu@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.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]