Commit 1bec1677 authored by Alexander Graf's avatar Alexander Graf Committed by Avi Kivity

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: default avatarAlexander Graf <agraf@suse.de>
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent c04a695a
...@@ -145,7 +145,7 @@ slb_do_enter: ...@@ -145,7 +145,7 @@ slb_do_enter:
lwz r11, (PACA_KVM_CR)(r13) lwz r11, (PACA_KVM_CR)(r13)
mtcr r11 mtcr r11
ld r11, (PACA_KVM_XER)(r13) lwz r11, (PACA_KVM_XER)(r13)
mtxer r11 mtxer r11
ld r11, (PACA_KVM_R11)(r13) ld r11, (PACA_KVM_R11)(r13)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment