]> git.ipfire.org Git - thirdparty/qemu.git/commit
mips/kvm: Fix Big endian 32-bit register access
authorJames Hogan <james.hogan@imgtec.com>
Fri, 24 Apr 2015 10:26:52 +0000 (11:26 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 30 Jul 2015 03:00:07 +0000 (22:00 -0500)
commit8df2a9acd2a345d5258ce80f37851097df7d5258
tree99b0ea2e2c76c3a25f177c92e806a4810b0c3d4b
parentc5c71e87aad967402c0b1e0240b8ce47a6d63714
mips/kvm: Fix Big endian 32-bit register access

Fix access to 32-bit registers on big endian targets. The pointer passed
to the kernel must be for the actual 32-bit value, not a temporary
64-bit value, otherwise on big endian systems the kernel will only
interpret the upper half.

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-2-git-send-email-james.hogan@imgtec.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit f8b3e48b2d269551cd40f94770dc20da2f402325)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
target-mips/kvm.c