]> git.proxmox.com Git - qemu.git/commit
target-ppc: Disentangle pte_check()
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 12 Mar 2013 00:31:07 +0000 (00:31 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 22 Mar 2013 14:28:47 +0000 (15:28 +0100)
commit9d7c3f4a2935a70e7299a6862792bbfc48d62211
tree48f61f396310b89b39b09d13a4483d03204c50fe
parent10b4652543313ca82284193fa107151c437f9b04
target-ppc: Disentangle pte_check()

Currently support for both 32-bit and 64-bit hash MMUs share an
implementation of pte_check.  But there are enough differences that this
means the shared function has several very ugly conditionals on "is_64b".

This patch cleans things up by separating out the 64-bit version
(putting it into mmu-hash64.c) and the 32-bit hash version (putting it
in mmu-hash32.c).  Another copy remains in mmu_helper.c, which is used
for the 6xx software loaded TLB paths.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/Makefile.objs
target-ppc/cpu.h
target-ppc/mmu-hash32.c [new file with mode: 0644]
target-ppc/mmu-hash32.h [new file with mode: 0644]
target-ppc/mmu-hash64.c
target-ppc/mmu-hash64.h
target-ppc/mmu_helper.c