mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
[a64] Fix CallIndirect return address
Should be `GUEST_RET_ADDR` not `GUEST_CALL_RET_ADDR`.
This commit is contained in:
parent
8b4b713e0e
commit
2b3147b2ed
|
|
@ -528,7 +528,7 @@ void A64Emitter::CallIndirect(const hir::Instr* instr,
|
|||
|
||||
// Pass the callers return address over.
|
||||
// mov(rcx, qword[rsp + StackLayout::GUEST_RET_ADDR]);
|
||||
LDR(X0, SP, StackLayout::GUEST_CALL_RET_ADDR);
|
||||
LDR(X0, SP, StackLayout::GUEST_RET_ADDR);
|
||||
|
||||
// add(rsp, static_cast<uint32_t>(stack_size()));
|
||||
ADD(SP, SP, static_cast<uint32_t>(stack_size()));
|
||||
|
|
|
|||
Loading…
Reference in a new issue