]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/s390x: Replace legacy ld/st_phys -> address_space_ld/st (tcg)
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 19 Mar 2026 18:52:01 +0000 (19:52 +0100)
committerCornelia Huck <cohuck@redhat.com>
Thu, 30 Apr 2026 14:59:09 +0000 (16:59 +0200)
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>
target/s390x/cpu-system.c

index 881171d71a2644397510e80fe89f4c8c5dfb1b20..285f59996616e5282f3d2c3a193e178c8f669b8c 100644 (file)
@@ -63,7 +63,7 @@ static void s390_cpu_load_normal(CPUState *s)
     uint64_t spsw;
 
     if (!s390_is_pv()) {
-        spsw = ldq_be_phys(s->as, 0);
+        spsw = address_space_ldq_be(s->as, 0, MEMTXATTRS_UNSPECIFIED, NULL);
         cpu->env.psw.mask = spsw & PSW_MASK_SHORT_CTRL;
         /*
          * Invert short psw indication, so SIE will report a specification