提交 d35feb26 编写于 作者: A Alexander Graf 提交者: Marcelo Tosatti

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: NAlexander Graf <agraf@suse.de>
Reported-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: NAvi Kivity <avi@redhat.com>
上级 25a8a02d
...@@ -177,8 +177,9 @@ kvmppc_handler_highmem: ...@@ -177,8 +177,9 @@ kvmppc_handler_highmem:
rldicl. r5, r5, 0, 63 /* CR = ((r5 & 1) == 0) */ rldicl. r5, r5, 0, 63 /* CR = ((r5 & 1) == 0) */
beq no_dcbz32_off beq no_dcbz32_off
li r4, 0
mfspr r5,SPRN_HID5 mfspr r5,SPRN_HID5
rldimi r5,r5,6,56 rldimi r5,r4,6,56
mtspr SPRN_HID5,r5 mtspr SPRN_HID5,r5
no_dcbz32_off: no_dcbz32_off:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册