]> git.proxmox.com Git - mirror_qemu.git/commit
PPC: move TLBs to their own arrays
authorAlexander Graf <agraf@suse.de>
Thu, 16 Jun 2011 23:00:28 +0000 (01:00 +0200)
committerAlexander Graf <agraf@suse.de>
Fri, 17 Jun 2011 00:58:37 +0000 (02:58 +0200)
commit1c53accceeb01246aea0ec361e1efd15cac6db0f
tree19d6bae7c21f0d852d5a1af0ad63b61a3d84fabf
parent0dd4bc7dd45de7afa88662d24bd50a3aafdbab64
PPC: move TLBs to their own arrays

Until now, we've created a union over multiple different TLB types and
allocated that union. While it's a waste of memory (and cache) to allocate
TLB information for a TLB type with much information when you only need
little, it also inflicts another issue.

With the new KVM API, we can now share the TLB between KVM and qemu, but
for that to work we need to have both be in the same layout. We can't just
stretch it over to fit some internal different TLB representation.

Hence this patch moves all TLB types to their own array, allowing us to only
address and allocate exactly the boundaries required for the specific TLB
type at hand.

Signed-off-by: Alexander Graf <agraf@suse.de>
hw/virtex_ml507.c
target-ppc/cpu.h
target-ppc/helper.c
target-ppc/machine.c
target-ppc/op_helper.c
target-ppc/translate_init.c