diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2025-05-04 11:04:55 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2025-05-28 08:08:48 +0100 |
commit | c2a0439f1ee99cb29883311f75ba08d9cca759c9 (patch) | |
tree | 50686134af8c36bf479c832f9aa7807b905ce99f | |
parent | 8024f004155ea5a3f492c35a792ea7863176e1a9 (diff) | |
download | qemu-c2a0439f1ee99cb29883311f75ba08d9cca759c9.zip qemu-c2a0439f1ee99cb29883311f75ba08d9cca759c9.tar.gz qemu-c2a0439f1ee99cb29883311f75ba08d9cca759c9.tar.bz2 |
target/s390x: Fill in TCGCPUOps.pointer_wrap
Use the existing wrap_address function.
Cc: qemu-s390x@nongnu.org
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
-rw-r--r-- | target/s390x/cpu.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/target/s390x/cpu.c b/target/s390x/cpu.c index 9c1158e..f05ce31 100644 --- a/target/s390x/cpu.c +++ b/target/s390x/cpu.c @@ -347,6 +347,14 @@ static TCGTBCPUState s390x_get_tb_cpu_state(CPUState *cs) }; } +#ifndef CONFIG_USER_ONLY +static vaddr s390_pointer_wrap(CPUState *cs, int mmu_idx, + vaddr result, vaddr base) +{ + return wrap_address(cpu_env(cs), result); +} +#endif + static const TCGCPUOps s390_tcg_ops = { .mttcg_supported = true, .precise_smc = true, @@ -367,6 +375,7 @@ static const TCGCPUOps s390_tcg_ops = { .record_sigbus = s390_cpu_record_sigbus, #else .tlb_fill = s390_cpu_tlb_fill, + .pointer_wrap = s390_pointer_wrap, .cpu_exec_interrupt = s390_cpu_exec_interrupt, .cpu_exec_halt = s390_cpu_has_work, .cpu_exec_reset = cpu_reset, |