Fix some issues.

This commit is contained in:
Jean-Philip Desjardins 2024-01-08 12:07:04 -05:00
parent c7800c57c0
commit fe4014f2b3

View file

@ -578,7 +578,8 @@ void CCOP_VU::VCALLMS()
m_codeGen->PushCst(static_cast<uint32>(m_nImm15) * 8);
m_codeGen->PullRel(offsetof(CMIPS, m_State.callMsAddr));
m_codeGen->Call(reinterpret_cast<void*>(&FastExecMs), 0, Jitter::CJitter::RETURN_VALUE_NONE);
m_codeGen->PushCtx();
m_codeGen->Call(reinterpret_cast<void*>(&FastExecMs), 1, Jitter::CJitter::RETURN_VALUE_NONE);
//m_codeGen->PushCst(MIPS_EXCEPTION_CALLMS);
//m_codeGen->PullRel(offsetof(CMIPS, m_State.nHasException));
@ -587,15 +588,18 @@ void CCOP_VU::VCALLMS()
//39
void CCOP_VU::VCALLMSR()
{
m_codeGen->PushCst(1);
m_codeGen->PullRel(offsetof(CMIPS, m_State.callMsEnabled));
//m_codeGen->PushCst(1);
//m_codeGen->PullRel(offsetof(CMIPS, m_State.callMsEnabled));
m_codeGen->PushRel(offsetof(CMIPS, m_State.cmsar0));
m_codeGen->Shl(3);
m_codeGen->PullRel(offsetof(CMIPS, m_State.callMsAddr));
m_codeGen->PushCst(MIPS_EXCEPTION_CALLMS);
m_codeGen->PullRel(offsetof(CMIPS, m_State.nHasException));
m_codeGen->PushCtx();
m_codeGen->Call(reinterpret_cast<void*>(&FastExecMs), 1, Jitter::CJitter::RETURN_VALUE_NONE);
//m_codeGen->PushCst(MIPS_EXCEPTION_CALLMS);
//m_codeGen->PullRel(offsetof(CMIPS, m_State.nHasException));
}
//3C