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é <[email protected]> --- target/s390x/mmu_helper.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/target/s390x/mmu_helper.c b/target/s390x/mmu_helper.c index 246573ff642..255271b9d34 100644 --- a/target/s390x/mmu_helper.c +++ b/target/s390x/mmu_helper.c @@ -44,8 +44,9 @@ static void trigger_access_exception(CPUS390XState *env, uint32_t type, } else { CPUState *cs = env_cpu(env); if (type != PGM_ADDRESSING) { - stq_be_phys(cs->as, env->psa + offsetof(LowCore, trans_exc_code), - tec); + address_space_stq_be(cs->as, + env->psa + offsetof(LowCore, trans_exc_code), + tec, MEMTXATTRS_UNSPECIFIED, NULL); } trigger_pgm_exception(env, type); } -- 2.53.0
