mirror of
https://github.com/libretro/Play-.git
synced 2024-11-30 20:21:25 +00:00
Make sure MADR is within MFIFO's buffer limits.
Prevents Tekken Tag Tournament from crashing.
This commit is contained in:
parent
24c0ff7117
commit
aa4f946dcf
@ -168,6 +168,9 @@ void CChannel::ExecuteNormal()
|
||||
|
||||
if(isMfifo)
|
||||
{
|
||||
m_nMADR &= m_dmac.m_D_RBSR;
|
||||
m_nMADR |= m_dmac.m_D_RBOR;
|
||||
|
||||
//Adjust QWC if we're in MFIFO mode
|
||||
uint32 ringBufferAddr = m_nMADR - m_dmac.m_D_RBOR;
|
||||
uint32 ringBufferSize = m_dmac.m_D_RBSR + 0x10;
|
||||
|
Loading…
Reference in New Issue
Block a user