diff options
author | Weiwei Li <liweiwei@iscas.ac.cn> | 2023-05-26 15:21:18 +0800 |
---|---|---|
committer | Alistair Francis <alistair.francis@wdc.com> | 2023-06-13 17:32:32 +1000 |
commit | bfc4f9e351e77c69fe21315815bc5db8ef7c22df (patch) | |
tree | 2023e53011434950733e70d878a6a45df45a0766 /accel/accel-user.c | |
parent | 3bd87176eeb3dee494ccaac56d9f77160c87bb9f (diff) | |
download | qemu-bfc4f9e351e77c69fe21315815bc5db8ef7c22df.zip qemu-bfc4f9e351e77c69fe21315815bc5db8ef7c22df.tar.gz qemu-bfc4f9e351e77c69fe21315815bc5db8ef7c22df.tar.bz2 |
target/riscv: Fix target address to update badaddr
Compute the target address before storing it into badaddr
when mis-aligned exception is triggered.
Use a target_pc temp to store the target address to avoid
the confusing operation that udpate target address into
cpu_pc before misalign check, then update it into badaddr
and restore cpu_pc to current pc if exception is triggered.
Signed-off-by: Weiwei Li <liweiwei@iscas.ac.cn>
Signed-off-by: Junqiang Wang <wangjunqiang@iscas.ac.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20230526072124.298466-2-liweiwei@iscas.ac.cn>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'accel/accel-user.c')
0 files changed, 0 insertions, 0 deletions