]> git.proxmox.com Git - mirror_qemu.git/commit
target/ppc: Get rid of POWERPC_MMU_VER() macros
authorDavid Gibson <david@gibson.dropbear.id.au>
Fri, 23 Mar 2018 05:48:43 +0000 (16:48 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 27 Apr 2018 08:05:22 +0000 (18:05 +1000)
commit0941d728a4636f68523d99a729e24ee12c36d440
tree1bf9e6f94343d0fde1c8b83ddd8f49fb137e5046
parentca79b3b7fd0757ceb6436d4407e26c8b511a4080
target/ppc: Get rid of POWERPC_MMU_VER() macros

These macros were introduced to deal with the fact that the mmu_model
field has bit flags mixed in with what's otherwise an enum of various mmu
types.

We've now eliminated all those flags except for one, and that one -
POWERPC_MMU_64 - is already included/compared in the MMU_VER macros.  So,
we can get rid of those macros and just directly compare mmu_model values
in the places it was used.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Greg Kurz <groug@kaod.org>
target/ppc/cpu-qom.h
target/ppc/kvm.c
target/ppc/mmu-hash64.c
target/ppc/mmu_helper.c
target/ppc/translate.c