aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kvm
diff options
context:
space:
mode:
authorJames Hogan <james.hogan@imgtec.com>2014-06-26 08:47:22 -0400
committerJames Hogan <james.hogan@imgtec.com>2015-03-27 17:25:08 -0400
commite93d4c159caaf746422c1af4c4f09fce9b456f8c (patch)
tree8937b1c92d90369bbca546ced36afec053edb438 /arch/mips/kvm
parent1068eaaf2f64ffb44d97fbaa9ff7a4662b76cf9e (diff)
MIPS: KVM: Sort kvm_mips_get_reg() registers
Sort the registers in the kvm_mips_get_reg() switch by register number, which puts ERROREPC after the CONFIG registers. Signed-off-by: James Hogan <james.hogan@imgtec.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Gleb Natapov <gleb@kernel.org> Cc: linux-mips@linux-mips.org Cc: kvm@vger.kernel.org
Diffstat (limited to 'arch/mips/kvm')
-rw-r--r--arch/mips/kvm/mips.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/kvm/mips.c b/arch/mips/kvm/mips.c
index fd620cc8a44c..b909c0046f08 100644
--- a/arch/mips/kvm/mips.c
+++ b/arch/mips/kvm/mips.c
@@ -578,9 +578,6 @@ static int kvm_mips_get_reg(struct kvm_vcpu *vcpu,
578 case KVM_REG_MIPS_CP0_PRID: 578 case KVM_REG_MIPS_CP0_PRID:
579 v = (long)kvm_read_c0_guest_prid(cop0); 579 v = (long)kvm_read_c0_guest_prid(cop0);
580 break; 580 break;
581 case KVM_REG_MIPS_CP0_ERROREPC:
582 v = (long)kvm_read_c0_guest_errorepc(cop0);
583 break;
584 case KVM_REG_MIPS_CP0_CONFIG: 581 case KVM_REG_MIPS_CP0_CONFIG:
585 v = (long)kvm_read_c0_guest_config(cop0); 582 v = (long)kvm_read_c0_guest_config(cop0);
586 break; 583 break;
@@ -596,6 +593,9 @@ static int kvm_mips_get_reg(struct kvm_vcpu *vcpu,
596 case KVM_REG_MIPS_CP0_CONFIG7: 593 case KVM_REG_MIPS_CP0_CONFIG7:
597 v = (long)kvm_read_c0_guest_config7(cop0); 594 v = (long)kvm_read_c0_guest_config7(cop0);
598 break; 595 break;
596 case KVM_REG_MIPS_CP0_ERROREPC:
597 v = (long)kvm_read_c0_guest_errorepc(cop0);
598 break;
599 /* registers to be handled specially */ 599 /* registers to be handled specially */
600 case KVM_REG_MIPS_CP0_COUNT: 600 case KVM_REG_MIPS_CP0_COUNT:
601 case KVM_REG_MIPS_COUNT_CTL: 601 case KVM_REG_MIPS_COUNT_CTL: