diff options
author | Greg Kurz <groug@kaod.org> | 2020-12-09 18:35:36 +0100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2020-12-14 15:54:12 +1100 |
commit | d57d72a874e6b6b7bea70fd7024fb217d4b51b52 (patch) | |
tree | af7c50cf9f96bdff37ab46b349c3c233b055cad4 /target/ppc/machine.c | |
parent | d55dfd446cd58b36f1b58d178039d7657a50e803 (diff) | |
download | qemu-d57d72a874e6b6b7bea70fd7024fb217d4b51b52.zip qemu-d57d72a874e6b6b7bea70fd7024fb217d4b51b52.tar.gz qemu-d57d72a874e6b6b7bea70fd7024fb217d4b51b52.tar.bz2 |
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/machine.c')
-rw-r--r-- | target/ppc/machine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/ppc/machine.c b/target/ppc/machine.c index c38e7b1..d9d911b 100644 --- a/target/ppc/machine.c +++ b/target/ppc/machine.c @@ -550,7 +550,7 @@ static bool sr_needed(void *opaque) #ifdef TARGET_PPC64 PowerPCCPU *cpu = opaque; - return !(cpu->env.mmu_model & POWERPC_MMU_64); + return !mmu_is_64bit(cpu->env.mmu_model); #else return true; #endif @@ -606,7 +606,7 @@ static bool slb_needed(void *opaque) PowerPCCPU *cpu = opaque; /* We don't support any of the old segment table based 64-bit CPUs */ - return cpu->env.mmu_model & POWERPC_MMU_64; + return mmu_is_64bit(cpu->env.mmu_model); } static int slb_post_load(void *opaque, int version_id) |