SPU: Log warning when data is lost due to reg clear

This commit is contained in:
Connor McLaughlin 2020-06-29 14:45:03 +10:00
parent ea1066f76e
commit 614ea632a5

View file

@ -444,9 +444,12 @@ void SPU::WriteRegister(u32 offset, u16 value)
new_value.ram_transfer_mode == RAMTransferMode::Stopped)
{
// clear the fifo here?
Log_DebugPrintf("Clearing SPU transfer FIFO");
if (!m_transfer_fifo.IsEmpty())
{
Log_WarningPrintf("Clearing SPU transfer FIFO with %u bytes left", m_transfer_fifo.GetSize());
m_transfer_fifo.Clear();
}
}
if (!new_value.enable && m_SPUCNT.enable)
{