]> git.proxmox.com Git - mirror_qemu.git/commit
target-mips: get_physical_address: Add KVM awareness
authorJames Hogan <james.hogan@imgtec.com>
Tue, 17 Jun 2014 22:10:30 +0000 (23:10 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 18 Jun 2014 14:58:37 +0000 (16:58 +0200)
commit4ef37e6907eaeeec3e0425b9e51a4b3918c194c7
tree05a71a9892c20ccebcc6febecf939d85b170f42f
parent22010ce7f23236b970b40cc5c0cf0c7fe0588e2f
target-mips: get_physical_address: Add KVM awareness

MIPS KVM trap & emulate mode (which is currently the only supported
mode) has to add an extra kseg0/kseg1 at 0x40000000 and an extra
kseg2/kseg3 at 0x60000000. Take this into account in
get_physical_address() so that debug memory access works.

This is done by translating the address to a standard kseg0 or kseg2
address before doing the normal address translation. The real virtual
address is still used for TLB lookups.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target-mips/helper.c