@samitouri / QOSamiQemu / commits / f07d16c90f

target/s390x: Replace legacy ld/st_phys -> address_space_ld/st (mmu)

Prefer the address_space_ld/st API over the legacy ld_phys() because it allow checking for bus access fault. This code however doesn't check for fault, so we simply inline the calls (not specifying any memory transaction attribute nor expecting transation result). No logical change intended. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com> Tested-by: Matthew Rosato <mjrosato@linux.ibm.com> Message-ID: <20260319185203.11799-3-philmd@linaro.org> Signed-off-by: Cornelia Huck <cohuck@redhat.com>

Philippe Mathieu-Daudé committed Mar 19, 2026 at 19:52 UTC f07d16c90ff674943f3b8dace1da2bda8b645636
1 file changed +3 -2
target/s390x/mmu_helper.c
+3 -2
@@ -44,8 +44,9 @@ static void trigger_access_exception(CPUS390XState *env, uint32_t type,
44 } else {
45 CPUState *cs = env_cpu(env);
46 if (type != PGM_ADDRESSING) {
47 - stq_be_phys(cs->as, env->psa + offsetof(LowCore, trans_exc_code),
48 - tec);
47 + address_space_stq_be(cs->as,
48 + env->psa + offsetof(LowCore, trans_exc_code),
49 + tec, MEMTXATTRS_UNSPECIFIED, NULL);
50 }
51 trigger_pgm_exception(env, type);
52 }