aboutsummaryrefslogtreecommitdiff
path: root/target/ppc/translate_init.c.inc
diff options
context:
space:
mode:
authorGreg Kurz <groug@kaod.org>2020-12-09 18:35:36 +0100
committerDavid Gibson <david@gibson.dropbear.id.au>2020-12-14 15:54:12 +1100
commitd57d72a874e6b6b7bea70fd7024fb217d4b51b52 (patch)
treeaf7c50cf9f96bdff37ab46b349c3c233b055cad4 /target/ppc/translate_init.c.inc
parentd55dfd446cd58b36f1b58d178039d7657a50e803 (diff)
target/ppc: Introduce an mmu_is_64bit() helper
Callers don't really need to know how 64-bit MMU model enums are computed. Hide this in a helper. Signed-off-by: Greg Kurz <groug@kaod.org> Message-Id: <20201209173536.1437351-3-groug@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'target/ppc/translate_init.c.inc')
-rw-r--r--target/ppc/translate_init.c.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/ppc/translate_init.c.inc b/target/ppc/translate_init.c.inc
index e4082cfde7..a4d0038828 100644
--- a/target/ppc/translate_init.c.inc
+++ b/target/ppc/translate_init.c.inc
@@ -10671,7 +10671,7 @@ static void ppc_cpu_reset(DeviceState *dev)
#endif
#if defined(TARGET_PPC64)
- if (env->mmu_model & POWERPC_MMU_64) {
+ if (mmu_is_64bit(env->mmu_model)) {
msr |= (1ULL << MSR_SF);
}
#endif