mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
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>
This commit is contained in:
parent
d55dfd446c
commit
d57d72a874
7 changed files with 17 additions and 12 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue