aboutsummaryrefslogtreecommitdiff
path: root/target/riscv/cpu_helper.c
diff options
context:
space:
mode:
authorLIU Zhiwei <zhiwei_liu@c-sky.com>2022-01-20 20:20:31 +0800
committerAlistair Francis <alistair.francis@wdc.com>2022-01-21 15:52:57 +1000
commit40f0c2046c490ef4b8bed4ca628620ab8a2bdf87 (patch)
tree325176fe757fb2e0b597ce75c0b02456b030ca65 /target/riscv/cpu_helper.c
parenta14db52f7fa9f6843d1806e8d4cd56f3410bb59d (diff)
downloadqemu-40f0c2046c490ef4b8bed4ca628620ab8a2bdf87.zip
qemu-40f0c2046c490ef4b8bed4ca628620ab8a2bdf87.tar.gz
qemu-40f0c2046c490ef4b8bed4ca628620ab8a2bdf87.tar.bz2
target/riscv: Sign extend pc for different XLEN
When pc is written, it is sign-extended to fill the widest supported XLEN. 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-5-zhiwei_liu@c-sky.com Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'target/riscv/cpu_helper.c')
0 files changed, 0 insertions, 0 deletions