target/s390x: Replace legacy ld/st_phys -> address_space_ld/st (tcg)
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-4-philmd@linaro.org> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Philippe Mathieu-Daudé committed
Mar 19, 2026 at 19:52 UTC
2b844dcf709ef45ed37fa07726d11f2ca638c9e9
1 file changed
+1
-1
target/s390x/cpu-system.c
+1
-1
@@ -63,7 +63,7 @@ static void s390_cpu_load_normal(CPUState *s)
63
uint64_t spsw;
64
65
if (!s390_is_pv()) {
66
- spsw = ldq_be_phys(s->as, 0);
66
+ spsw = address_space_ldq_be(s->as, 0, MEMTXATTRS_UNSPECIFIED, NULL);
67
cpu->env.psw.mask = spsw & PSW_MASK_SHORT_CTRL;
68
/*
69
* Invert short psw indication, so SIE will report a specification