]> git.ipfire.org Git - thirdparty/qemu.git/commit
mips/kvm: Sign extend registers written to KVM
authorJames Hogan <james.hogan@imgtec.com>
Fri, 24 Apr 2015 10:26:53 +0000 (11:26 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 30 Jul 2015 03:00:11 +0000 (22:00 -0500)
commit87740cecc3f51f030c27f99812761b64b8f7d707
tree3af8b375312921378088619107138394897ed4c1
parent8df2a9acd2a345d5258ce80f37851097df7d5258
mips/kvm: Sign extend registers written to KVM

In case we're running on a 64-bit host, be sure to sign extend the
general purpose registers and hi/lo/pc before writing them to KVM, so as
to take advantage of MIPS32/MIPS64 compatibility.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Leon Alrae <leon.alrae@imgtec.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: kvm@vger.kernel.org
Cc: qemu-stable@nongnu.org
Message-Id: <1429871214-23514-3-git-send-email-james.hogan@imgtec.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 02dae26ac4ceb1e82c432cfca4d9b65ae82343c6)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
target-mips/kvm.c