]> git.proxmox.com Git - mirror_qemu.git/blobdiff - target/s390x/mmu_helper.c
target/s390x: Fix LRA when DAT is off
[mirror_qemu.git] / target / s390x / mmu_helper.c
index b04b57c235694abcc5422ababdadcab0ba48e71b..fbb2f1b4d485ea702588d377ec75e16d10a8f103 100644 (file)
@@ -417,7 +417,7 @@ int mmu_translate(CPUS390XState *env, target_ulong vaddr, int rw, uint64_t asc,
 
     vaddr &= TARGET_PAGE_MASK;
 
-    if (!(env->psw.mask & PSW_MASK_DAT)) {
+    if (rw != MMU_S390_LRA && !(env->psw.mask & PSW_MASK_DAT)) {
         *raddr = vaddr;
         goto nodat;
     }