aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2010-03-24 16:48:26 -0400
committerAvi Kivity <avi@redhat.com>2010-05-17 05:17:04 -0400
commit1bec1677ca5b3406dc1f174b61beaeb832eed715 (patch)
treeb02f63cfeceb0238ee6f75229a4ab50e955e9c6b
parentc04a695a4484467889d0c91c2e377c6abcecd5d5 (diff)
KVM: PPC: Make XER load 32 bit
We have a 32 bit value in the PACA to store XER in. We also do an stw when storing XER in there. But then we load it with ld, completely screwing it up on every entry. Welcome to the Big Endian world. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Avi Kivity <avi@redhat.com>
-rw-r--r--arch/powerpc/kvm/book3s_64_slb.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/book3s_64_slb.S b/arch/powerpc/kvm/book3s_64_slb.S
index 35b762722187..091967907954 100644
--- a/arch/powerpc/kvm/book3s_64_slb.S
+++ b/arch/powerpc/kvm/book3s_64_slb.S
@@ -145,7 +145,7 @@ slb_do_enter:
145 lwz r11, (PACA_KVM_CR)(r13) 145 lwz r11, (PACA_KVM_CR)(r13)
146 mtcr r11 146 mtcr r11
147 147
148 ld r11, (PACA_KVM_XER)(r13) 148 lwz r11, (PACA_KVM_XER)(r13)
149 mtxer r11 149 mtxer r11
150 150
151 ld r11, (PACA_KVM_R11)(r13) 151 ld r11, (PACA_KVM_R11)(r13)