Core: RomMemoryHandler Set PI_STATUS_IO_BUSY when write to rom

This commit is contained in:
zilmar 2022-08-22 12:09:42 +09:30
parent cc2aa4783a
commit 4b0966a264
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,7 @@ bool RomMemoryHandler::Read32(uint32_t Address, uint32_t & Value)
if (m_RomWrittenTo)
{
Value = m_RomWroteValue;
m_Reg.PI_STATUS_REG &= ~PI_STATUS_IO_BUSY;
m_RomWrittenTo = false;
}
else if ((Address & 0xFFFFFFF) < m_Rom.GetRomSize())
@ -58,6 +59,7 @@ bool RomMemoryHandler::Write32(uint32_t /*Address*/, uint32_t Value, uint32_t Ma
{
m_RomWrittenTo = true;
m_RomWroteValue = (Value & Mask);
m_Reg.PI_STATUS_REG |= PI_STATUS_IO_BUSY;
}
return true;
}