KVM: PPC: Make XER load 32 bit
authorAlexander Graf <agraf@suse.de>
Wed, 24 Mar 2010 20:48:26 +0000 (21:48 +0100)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:17:04 +0000 (12:17 +0300)
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>
arch/powerpc/kvm/book3s_64_slb.S

index 35b7627..0919679 100644 (file)
@@ -145,7 +145,7 @@ slb_do_enter:
        lwz     r11, (PACA_KVM_CR)(r13)
        mtcr    r11
 
-       l     r11, (PACA_KVM_XER)(r13)
+       lwz     r11, (PACA_KVM_XER)(r13)
        mtxer   r11
 
        ld      r11, (PACA_KVM_R11)(r13)