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: Anton Blanchard <anton@samba.org> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
568fccc43f
commit
05a308c722
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user