mirror of
https://github.com/libretro/Play-.git
synced 2024-12-11 18:54:11 +00:00
Implement Enter/ExitCriticalSection.
This commit is contained in:
parent
1ec189aa04
commit
79834c3a3c
@ -1109,12 +1109,15 @@ void CPsxBios::sc_ChangeClearRCnt()
|
||||
|
||||
void CPsxBios::sc_EnterCriticalSection()
|
||||
{
|
||||
|
||||
bool isIntEnabled = (m_cpu.m_State.nCOP0[CCOP_SCU::STATUS] & CMIPS::STATUS_IE) != 0;
|
||||
m_cpu.m_State.nCOP0[CCOP_SCU::STATUS] &= ~CMIPS::STATUS_IE;
|
||||
|
||||
m_cpu.m_State.nGPR[SC_RETURN].nD0 = static_cast<int32>(isIntEnabled ? 1 : 0);
|
||||
}
|
||||
|
||||
void CPsxBios::sc_ExitCriticalSection()
|
||||
{
|
||||
|
||||
m_cpu.m_State.nCOP0[CCOP_SCU::STATUS] |= CMIPS::STATUS_IE;
|
||||
}
|
||||
|
||||
void CPsxBios::sc_Illegal()
|
||||
|
Loading…
Reference in New Issue
Block a user