[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 06/12] target/s390x: Fix LRA when DAT is off
From: |
Ilya Leoshkevich |
Subject: |
[PATCH 06/12] target/s390x: Fix LRA when DAT is off |
Date: |
Mon, 3 Jul 2023 17:50:32 +0200 |
LRA should perform DAT regardless of whether it's on or off.
Disable DAT check for MMU_S390_LRA.
Fixes: defb0e3157af ("s390x: Implement opcode helpers")
Cc: qemu-stable@nongnu.org
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
---
target/s390x/mmu_helper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/s390x/mmu_helper.c b/target/s390x/mmu_helper.c
index b04b57c2356..fbb2f1b4d48 100644
--- a/target/s390x/mmu_helper.c
+++ b/target/s390x/mmu_helper.c
@@ -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;
}
--
2.41.0
- Re: [PATCH 01/12] linux-user: elfload: Add more initial s390x PSW bits, (continued)
[PATCH 04/12] target/s390x: Fix MVCRL with a large value in R0, Ilya Leoshkevich, 2023/07/03
[PATCH 05/12] target/s390x: Fix LRA overwriting the top 32 bits on DAT error, Ilya Leoshkevich, 2023/07/03
[PATCH 06/12] target/s390x: Fix LRA when DAT is off,
Ilya Leoshkevich <=
[PATCH 07/12] target/s390x: Fix relative long instructions with large offsets, Ilya Leoshkevich, 2023/07/03
[PATCH 08/12] tests/tcg/s390x: Test EPSW, Ilya Leoshkevich, 2023/07/03
[PATCH 09/12] tests/tcg/s390x: Test LARL with a large offset, Ilya Leoshkevich, 2023/07/03
[PATCH 10/12] tests/tcg/s390x: Test LRA, Ilya Leoshkevich, 2023/07/03
[PATCH 11/12] tests/tcg/s390x: Test MDEB and MDEBR, Ilya Leoshkevich, 2023/07/03