]> git.proxmox.com Git - mirror_qemu.git/commit
PPC: e500: Fix TLB lookup for 32bit CPUs
authorAlexander Graf <agraf@suse.de>
Tue, 3 Jun 2014 22:27:31 +0000 (00:27 +0200)
committerAlexander Graf <agraf@suse.de>
Mon, 16 Jun 2014 11:24:41 +0000 (13:24 +0200)
commitdeb6ed13ebfcd6c73548225347c5f63225bb471f
treeecaad95508799ff798d1b748ed5b19dff6f004b4
parentf2e2bc9ca06a1c2c6b300c19d4b938c7273a2f76
PPC: e500: Fix TLB lookup for 32bit CPUs

When we run 32bit guest CPUs (or 32bit guest code on 64bit CPUs) on
qemu-system-ppc64 the TLB lookup will use the full effective address
as pointer.

However, only the first 32bits are valid when MSR.CM = 0. Check for
that condition.

This makes QEMU boot an e500v2 guest with more than 1G of RAM for me.

Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/mmu_helper.c