Skip to content

Commit

Permalink
KVM: PPC: Make XER load 32 bit
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexander Graf authored and Avi Kivity committed May 17, 2010
1 parent c04a695 commit 1bec167
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/kvm/book3s_64_slb.S
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ slb_do_enter:
lwz r11, (PACA_KVM_CR)(r13)
mtcr r11

ld r11, (PACA_KVM_XER)(r13)
lwz r11, (PACA_KVM_XER)(r13)
mtxer r11

ld r11, (PACA_KVM_R11)(r13)
Expand Down

0 comments on commit 1bec167

Please sign in to comment.