mips/kvm: Implement PRid CP0 register
commit461a1582f0bce00f7a3e1ff714d3a9885ad8b012
authorJames Hogan <james.hogan@imgtec.com>
Wed, 3 Feb 2016 17:16:48 +0000 (3 17:16 +0000)
committerLeon Alrae <leon.alrae@imgtec.com>
Fri, 26 Feb 2016 08:59:17 +0000 (26 08:59 +0000)
tree6d8c0c3c8926d7291cf2999d80c68e05fcf00e11
parentc489e5591ff998204dc4736748b9441514f2cbee
mips/kvm: Implement PRid CP0 register

Implement saving and restoring to KVM state of the Processor ID (PRid)
CP0 register. This allows QEMU to control the PRid exposed to the guest
instead of using the default set by KVM.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Reviewed-by: Leon Alrae <leon.alrae@imgtec.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
target-mips/kvm.c