提交 05a308c7 编写于 作者: A Anton Blanchard 提交者: Alexander Graf

KVM: PPC: Book3S HV: Fix ABIv2 indirect branch issue

To establish addressability quickly, ABIv2 requires the target
address of the function being called to be in r12.
Signed-off-by: NAnton Blanchard <anton@samba.org>
Signed-off-by: NAlexander Graf <agraf@suse.de>
上级 568fccc4
...@@ -1913,8 +1913,8 @@ hcall_try_real_mode: ...@@ -1913,8 +1913,8 @@ hcall_try_real_mode:
lwax r3,r3,r4 lwax r3,r3,r4
cmpwi r3,0 cmpwi r3,0
beq guest_exit_cont beq guest_exit_cont
add r3,r3,r4 add r12,r3,r4
mtctr r3 mtctr r12
mr r3,r9 /* get vcpu pointer */ mr r3,r9 /* get vcpu pointer */
ld r4,VCPU_GPR(R4)(r9) ld r4,VCPU_GPR(R4)(r9)
bctrl bctrl
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册