summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorJames Hogan2017-07-31 15:09:12 +0200
committerYongbok Kim2017-08-02 18:01:27 +0200
commit6743334568933199927af4992a04bfb3c30610f5 (patch)
tree754a77cfc61688ae1902d11c29df6b18a7e8745b /hw
parentmips/malta: leave space for the bootmap after the initrd (diff)
downloadqemu-6743334568933199927af4992a04bfb3c30610f5.tar.gz
qemu-6743334568933199927af4992a04bfb3c30610f5.tar.xz
qemu-6743334568933199927af4992a04bfb3c30610f5.zip
mips: Improve segment defs for KVM T&E guests
Improve the segment definitions used by get_physical_address() to yield target_ulong types, e.g. 0xffffffff80000000 instead of 0x80000000. This is in preparation for enabling emulation of MIPS KVM T&E segments in TCG MIPS targets, which unlike KVM could potentially have 64-bit target_ulong. In such a case the offset guest KSEG0 address ends up at e.g. 0x000000008xxxxxxx instead of 0xffffffff8xxxxxxx. This also allows the casts to int32_t that force sign extension to be removed, which removes any confusion due to relational comparison of unsigned (target_ulong) and signed (int32_t) types. Signed-off-by: James Hogan <james.hogan@imgtec.com> Cc: Yongbok Kim <yongbok.kim@imgtec.com> Cc: Aurelien Jarno <aurelien@aurel32.net> Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: kvm@vger.kernel.org Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Yongbok Kim <yongbok.kim@imgtec.com>
Diffstat (limited to 'hw')
0 files changed, 0 insertions, 0 deletions