diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-04-12 13:43:29 +0200 |
---|---|---|
committer | Alistair Francis <alistair.francis@wdc.com> | 2023-05-05 10:49:50 +1000 |
commit | 0a19bf5e37ded0ebfe48e23defe74cc5d8b162b3 (patch) | |
tree | e9f7f9246176041817bd9464b5e90bca14a40adb /target/riscv | |
parent | 59688aa02340ed51113e5574bf4c3ced3b73220a (diff) | |
download | qemu-0a19bf5e37ded0ebfe48e23defe74cc5d8b162b3.zip qemu-0a19bf5e37ded0ebfe48e23defe74cc5d8b162b3.tar.gz qemu-0a19bf5e37ded0ebfe48e23defe74cc5d8b162b3.tar.bz2 |
target/riscv: Suppress pte update with is_debug
The debugger should not modify PTE_A or PTE_D.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Weiwei Li <liweiwei@iscas.ac.cn>
Tested-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Message-Id: <20230325105429.1142530-22-richard.henderson@linaro.org>
Message-Id: <20230412114333.118895-22-richard.henderson@linaro.org>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'target/riscv')
-rw-r--r-- | target/riscv/cpu_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/riscv/cpu_helper.c b/target/riscv/cpu_helper.c index c2d083f..6dc3fdf 100644 --- a/target/riscv/cpu_helper.c +++ b/target/riscv/cpu_helper.c @@ -1001,7 +1001,7 @@ restart: (access_type == MMU_DATA_STORE ? PTE_D : 0); /* Page table updates need to be atomic with MTTCG enabled */ - if (updated_pte != pte) { + if (updated_pte != pte && !is_debug) { if (!hade) { return TRANSLATE_FAIL; } |