diff options
author | Víctor Colombo | 2022-05-04 23:05:32 +0200 |
---|---|---|
committer | Daniel Henrique Barboza | 2022-05-05 20:36:17 +0200 |
commit | cda2336027d2ef744d04271810bb64085ab2cd29 (patch) | |
tree | 5c620d6ba880474548260a1b1faf60d6884d09bb /target/ppc/mmu_helper.c | |
parent | target/ppc: Remove msr_fp macro (diff) | |
download | qemu-cda2336027d2ef744d04271810bb64085ab2cd29.tar.gz qemu-cda2336027d2ef744d04271810bb64085ab2cd29.tar.xz qemu-cda2336027d2ef744d04271810bb64085ab2cd29.zip |
target/ppc: Remove msr_cm macro
msr_cm macro hides the usage of env->msr, which is a bad behavior
Substitute it with FIELD_EX64 calls that explicitly use env->msr
as a parameter.
Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Víctor Colombo <victor.colombo@eldorado.org.br>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220504210541.115256-14-victor.colombo@eldorado.org.br>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Diffstat (limited to 'target/ppc/mmu_helper.c')
-rw-r--r-- | target/ppc/mmu_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/ppc/mmu_helper.c b/target/ppc/mmu_helper.c index 5bb5c71038..15239dc95b 100644 --- a/target/ppc/mmu_helper.c +++ b/target/ppc/mmu_helper.c @@ -1003,7 +1003,7 @@ void helper_booke206_tlbwe(CPUPPCState *env) /* Add a mask for page attributes */ mask |= MAS2_ACM | MAS2_VLE | MAS2_W | MAS2_I | MAS2_M | MAS2_G | MAS2_E; - if (!msr_cm) { + if (!FIELD_EX64(env->msr, MSR, CM)) { /* * Executing a tlbwe instruction in 32-bit mode will set bits * 0:31 of the TLB EPN field to zero. |