aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm/e500_emulate.c
diff options
context:
space:
mode:
authorLiu Yu <yu.liu@freescale.com>2009-02-17 03:52:08 -0500
committerAvi Kivity <avi@redhat.com>2009-03-24 05:03:12 -0400
commitb0a1835d53c57bc38b36867c04436b60454cb610 (patch)
tree8d3cd9f1d01b8d13f82bddda759c1f3335147221 /arch/powerpc/kvm/e500_emulate.c
parent71450f78853b82d55cda4e182c9db6e26b631485 (diff)
KVM: ppc: Add emulation of E500 register mmucsr0
Latest kernel flushes TLB via mmucsr0. Signed-off-by: Liu Yu <yu.liu@freescale.com> Acked-by: Hollis Blanchard <hollisb@us.ibm.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/powerpc/kvm/e500_emulate.c')
-rw-r--r--arch/powerpc/kvm/e500_emulate.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/e500_emulate.c b/arch/powerpc/kvm/e500_emulate.c
index 7a98d4a4c1ed..3f760414b9f8 100644
--- a/arch/powerpc/kvm/e500_emulate.c
+++ b/arch/powerpc/kvm/e500_emulate.c
@@ -105,6 +105,11 @@ int kvmppc_core_emulate_mtspr(struct kvm_vcpu *vcpu, int sprn, int rs)
105 case SPRN_HID1: 105 case SPRN_HID1:
106 vcpu_e500->hid1 = vcpu->arch.gpr[rs]; break; 106 vcpu_e500->hid1 = vcpu->arch.gpr[rs]; break;
107 107
108 case SPRN_MMUCSR0:
109 emulated = kvmppc_e500_emul_mt_mmucsr0(vcpu_e500,
110 vcpu->arch.gpr[rs]);
111 break;
112
108 /* extra exceptions */ 113 /* extra exceptions */
109 case SPRN_IVOR32: 114 case SPRN_IVOR32:
110 vcpu->arch.ivor[BOOKE_IRQPRIO_SPE_UNAVAIL] = vcpu->arch.gpr[rs]; 115 vcpu->arch.ivor[BOOKE_IRQPRIO_SPE_UNAVAIL] = vcpu->arch.gpr[rs];
@@ -172,6 +177,9 @@ int kvmppc_core_emulate_mfspr(struct kvm_vcpu *vcpu, int sprn, int rt)
172 case SPRN_HID1: 177 case SPRN_HID1:
173 vcpu->arch.gpr[rt] = vcpu_e500->hid1; break; 178 vcpu->arch.gpr[rt] = vcpu_e500->hid1; break;
174 179
180 case SPRN_MMUCSR0:
181 vcpu->arch.gpr[rt] = 0; break;
182
175 /* extra exceptions */ 183 /* extra exceptions */
176 case SPRN_IVOR32: 184 case SPRN_IVOR32:
177 vcpu->arch.gpr[rt] = vcpu->arch.ivor[BOOKE_IRQPRIO_SPE_UNAVAIL]; 185 vcpu->arch.gpr[rt] = vcpu->arch.ivor[BOOKE_IRQPRIO_SPE_UNAVAIL];