[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 33/35] target/ppc: Remove redundant mask in DCBZ
From: |
David Gibson |
Subject: |
[PULL 33/35] target/ppc: Remove redundant mask in DCBZ |
Date: |
Mon, 3 Feb 2020 17:11:21 +1100 |
From: Richard Henderson <address@hidden>
The value of addr has already been masked, just above.
Signed-off-by: Richard Henderson <address@hidden>
Message-Id: <address@hidden>
Tested-by: Howard Spoelstra <address@hidden>
Signed-off-by: David Gibson <address@hidden>
---
target/ppc/mem_helper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/ppc/mem_helper.c b/target/ppc/mem_helper.c
index e7d3a79d96..0cb78777e7 100644
--- a/target/ppc/mem_helper.c
+++ b/target/ppc/mem_helper.c
@@ -293,7 +293,7 @@ static void dcbz_common(CPUPPCState *env, target_ulong addr,
addr &= mask;
/* Check reservation */
- if ((env->reserve_addr & mask) == (addr & mask)) {
+ if ((env->reserve_addr & mask) == addr) {
env->reserve_addr = (target_ulong)-1ULL;
}
--
2.24.1
- Re: [PULL 34/35] target/ppc: Use probe_write for DCBZ, (continued)
[PULL 31/35] target/ppc: Use probe_access for LSW, STSW, David Gibson, 2020/02/03
[PULL 33/35] target/ppc: Remove redundant mask in DCBZ,
David Gibson <=
Re: [PULL 00/35] ppc-for-5.0 queue 20200203, Peter Maydell, 2020/02/03