]> 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)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 16 Jul 2015 18:00:20 +0000 (20:00 +0200)
commitf8b3e48b2d269551cd40f94770dc20da2f402325
tree9fdc95c0696679b5a26213e884de6c4751d51a8b
parent2d5ee9e7a7dd495d233cf9613a865f63f88e3375
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>
target-mips/kvm.c