dmac: set DMAOR.AE and raised interrupt if ch2 address error

Fixes crackin'dj 1 & 2 freeze at boot
Regression introduced by 66eb08f2d1
This commit is contained in:
Flyinghead 2023-03-06 10:26:52 +01:00
parent 27b6bafd0f
commit 67bba95dd1
1 changed files with 3 additions and 1 deletions

View File

@ -29,7 +29,9 @@ void DMAC_Ch2St()
if ((src >> 26) != 3)
{
// Source address must be in system RAM
INFO_LOG(SH4, "DMAC: invalid source address %x", DMAC_SAR(2));
WARN_LOG(SH4, "DMAC: invalid source address %x dest %x len %x", DMAC_SAR(2), SB_C2DSTAT, SB_C2DLEN);
DMAC_DMAOR.AE = 1;
asic_RaiseInterrupt(holly_CH2_DMA);
return;
}