diff options
Diffstat (limited to 'arch/powerpc/kvm/booke_interrupts.S')
-rw-r--r-- | arch/powerpc/kvm/booke_interrupts.S | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/powerpc/kvm/booke_interrupts.S b/arch/powerpc/kvm/booke_interrupts.S index bb46b32f9813..ca16d57f7686 100644 --- a/arch/powerpc/kvm/booke_interrupts.S +++ b/arch/powerpc/kvm/booke_interrupts.S | |||
@@ -56,7 +56,8 @@ | |||
56 | _GLOBAL(kvmppc_handler_\ivor_nr) | 56 | _GLOBAL(kvmppc_handler_\ivor_nr) |
57 | /* Get pointer to vcpu and record exit number. */ | 57 | /* Get pointer to vcpu and record exit number. */ |
58 | mtspr \scratch , r4 | 58 | mtspr \scratch , r4 |
59 | mfspr r4, SPRN_SPRG_RVCPU | 59 | mfspr r4, SPRN_SPRG_THREAD |
60 | lwz r4, THREAD_KVM_VCPU(r4) | ||
60 | stw r3, VCPU_GPR(R3)(r4) | 61 | stw r3, VCPU_GPR(R3)(r4) |
61 | stw r5, VCPU_GPR(R5)(r4) | 62 | stw r5, VCPU_GPR(R5)(r4) |
62 | stw r6, VCPU_GPR(R6)(r4) | 63 | stw r6, VCPU_GPR(R6)(r4) |
@@ -402,9 +403,6 @@ lightweight_exit: | |||
402 | lwz r8, kvmppc_booke_handlers@l(r8) | 403 | lwz r8, kvmppc_booke_handlers@l(r8) |
403 | mtspr SPRN_IVPR, r8 | 404 | mtspr SPRN_IVPR, r8 |
404 | 405 | ||
405 | /* Save vcpu pointer for the exception handlers. */ | ||
406 | mtspr SPRN_SPRG_WVCPU, r4 | ||
407 | |||
408 | lwz r5, VCPU_SHARED(r4) | 406 | lwz r5, VCPU_SHARED(r4) |
409 | 407 | ||
410 | /* Can't switch the stack pointer until after IVPR is switched, | 408 | /* Can't switch the stack pointer until after IVPR is switched, |