[a64] Fix CallIndirect return address

Should be `GUEST_RET_ADDR` not `GUEST_CALL_RET_ADDR`.
This commit is contained in:
Wunkolo 2024-05-06 12:53:59 -07:00
parent 8b4b713e0e
commit 2b3147b2ed

View file

@ -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()));