mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-06 09:39:55 +00:00
spu: external function calls should be marked non-tail
Mark external function calls as non-tail, since they aren't tail calls and assuming they are will cause returns to fail in Arm64 GHC CC.
This commit is contained in:
parent
086e12c6ca
commit
488982f424
@ -2979,6 +2979,7 @@ public:
|
|||||||
m_engine->updateGlobalMapping({lame.data(), lame.size()}, reinterpret_cast<uptr>(_func));
|
m_engine->updateGlobalMapping({lame.data(), lame.size()}, reinterpret_cast<uptr>(_func));
|
||||||
|
|
||||||
const auto inst = m_ir->CreateCall(func, {args...});
|
const auto inst = m_ir->CreateCall(func, {args...});
|
||||||
|
inst->setTailCallKind(llvm::CallInst::TCK_NoTail);
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
inst->setCallingConv(llvm::CallingConv::Win64);
|
inst->setCallingConv(llvm::CallingConv::Win64);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user