]> Git Repo - qemu.git/commit - target-mips/helper.c
target-mips: get_physical_address: Add KVM awareness
authorJames Hogan <[email protected]>
Tue, 17 Jun 2014 22:10:30 +0000 (23:10 +0100)
committerPaolo Bonzini <[email protected]>
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 <[email protected]>
Cc: Aurelien Jarno <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
target-mips/helper.c
This page took 0.024416 seconds and 4 git commands to generate.