From: Richard Henderson Date: Wed, 29 Jan 2020 23:50:39 +0000 (-0800) Subject: target/ppc: Remove redundant mask in DCBZ X-Git-Tag: v5.0.0-rc0~113^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1cbddf6d944e13efe95e3d4a7726e474e4bac252;p=thirdparty%2Fqemu.git target/ppc: Remove redundant mask in DCBZ The value of addr has already been masked, just above. Signed-off-by: Richard Henderson Message-Id: <20200129235040.24022-4-richard.henderson@linaro.org> Tested-by: Howard Spoelstra Signed-off-by: David Gibson --- diff --git a/target/ppc/mem_helper.c b/target/ppc/mem_helper.c index e7d3a79d967..0cb78777e71 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; }