diff options
author | Alexander Graf <agraf@suse.de> | 2010-01-07 20:58:08 -0500 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2010-03-01 10:35:49 -0500 |
commit | d35feb26ef7e9fbef7643051be5f0773662b1f91 (patch) | |
tree | f06668b64bb53b4ce57a9b468fed8f08d5467f93 /arch/powerpc/kvm | |
parent | 25a8a02d26a71c28e26417a3520c653c2d40af6b (diff) |
KVM: PPC: Fix HID5 setting code
The code to unset HID5.dcbz32 is broken.
This patch makes it do the right rotate magic.
Signed-off-by: Alexander Graf <agraf@suse.de>
Reported-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/powerpc/kvm')
-rw-r--r-- | arch/powerpc/kvm/book3s_64_interrupts.S | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/book3s_64_interrupts.S b/arch/powerpc/kvm/book3s_64_interrupts.S index 33aef5345f6b..2ff0b2137e6f 100644 --- a/arch/powerpc/kvm/book3s_64_interrupts.S +++ b/arch/powerpc/kvm/book3s_64_interrupts.S | |||
@@ -177,8 +177,9 @@ kvmppc_handler_highmem: | |||
177 | rldicl. r5, r5, 0, 63 /* CR = ((r5 & 1) == 0) */ | 177 | rldicl. r5, r5, 0, 63 /* CR = ((r5 & 1) == 0) */ |
178 | beq no_dcbz32_off | 178 | beq no_dcbz32_off |
179 | 179 | ||
180 | li r4, 0 | ||
180 | mfspr r5,SPRN_HID5 | 181 | mfspr r5,SPRN_HID5 |
181 | rldimi r5,r5,6,56 | 182 | rldimi r5,r4,6,56 |
182 | mtspr SPRN_HID5,r5 | 183 | mtspr SPRN_HID5,r5 |
183 | 184 | ||
184 | no_dcbz32_off: | 185 | no_dcbz32_off: |