diff options
author | James Hogan <james.hogan@imgtec.com> | 2014-06-17 23:10:30 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-06-18 16:58:37 +0200 |
commit | 4ef37e6907eaeeec3e0425b9e51a4b3918c194c7 (patch) | |
tree | 05a71a9892c20ccebcc6febecf939d85b170f42f /kvm-all.c | |
parent | 22010ce7f23236b970b40cc5c0cf0c7fe0588e2f (diff) |
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>
Diffstat (limited to 'kvm-all.c')
0 files changed, 0 insertions, 0 deletions