diff options
-rw-r--r-- | arch/powerpc/kvm/book3s_segment.S | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/powerpc/kvm/book3s_segment.S b/arch/powerpc/kvm/book3s_segment.S index 87cfc1def241..6e6e9cef34a8 100644 --- a/arch/powerpc/kvm/book3s_segment.S +++ b/arch/powerpc/kvm/book3s_segment.S | |||
@@ -197,8 +197,8 @@ kvmppc_interrupt: | |||
197 | /* Save guest PC and MSR */ | 197 | /* Save guest PC and MSR */ |
198 | #ifdef CONFIG_PPC64 | 198 | #ifdef CONFIG_PPC64 |
199 | BEGIN_FTR_SECTION | 199 | BEGIN_FTR_SECTION |
200 | mr r10, r12 | 200 | andi. r0, r12, 0x2 |
201 | andi. r0,r12,0x2 | 201 | cmpwi cr1, r0, 0 |
202 | beq 1f | 202 | beq 1f |
203 | mfspr r3,SPRN_HSRR0 | 203 | mfspr r3,SPRN_HSRR0 |
204 | mfspr r4,SPRN_HSRR1 | 204 | mfspr r4,SPRN_HSRR1 |
@@ -345,8 +345,7 @@ no_dcbz32_off: | |||
345 | 345 | ||
346 | #ifdef CONFIG_PPC64 | 346 | #ifdef CONFIG_PPC64 |
347 | BEGIN_FTR_SECTION | 347 | BEGIN_FTR_SECTION |
348 | andi. r0,r10,0x2 | 348 | beq cr1, 1f |
349 | beq 1f | ||
350 | mtspr SPRN_HSRR1, r6 | 349 | mtspr SPRN_HSRR1, r6 |
351 | mtspr SPRN_HSRR0, r8 | 350 | mtspr SPRN_HSRR0, r8 |
352 | END_FTR_SECTION_IFSET(CPU_FTR_HVMODE) | 351 | END_FTR_SECTION_IFSET(CPU_FTR_HVMODE) |