summaryrefslogtreecommitdiffstats
path: root/target/riscv/gdbstub.c
diff options
context:
space:
mode:
authorLIU Zhiwei2022-01-20 13:20:34 +0100
committerAlistair Francis2022-01-21 06:52:57 +0100
commitbf9e776ec19a7e93dc520824c23cf8754fe274fd (patch)
tree1c639862253790e5f415c2c294fb0023a1b8091c /target/riscv/gdbstub.c
parenttarget/riscv: Ignore the pc bits above XLEN (diff)
downloadqemu-bf9e776ec19a7e93dc520824c23cf8754fe274fd.tar.gz
qemu-bf9e776ec19a7e93dc520824c23cf8754fe274fd.tar.xz
qemu-bf9e776ec19a7e93dc520824c23cf8754fe274fd.zip
target/riscv: Extend pc for runtime pc write
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> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-id: 20220120122050.41546-8-zhiwei_liu@c-sky.com Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'target/riscv/gdbstub.c')
0 files changed, 0 insertions, 0 deletions