mirror of https://github.com/PCSX2/pcsx2.git
dmac: limit address to the scratch pad memory
Help dma tests
This commit is contained in:
parent
c037686a26
commit
c959424957
|
@ -374,6 +374,20 @@ __fi bool dmacWrite32( u32 mem, mem32_t& value )
|
|||
return false;
|
||||
}
|
||||
|
||||
icase(fromSPR_SADR)
|
||||
{
|
||||
// Address must be QW aligned and fit in the 16K range of SPR
|
||||
psHu32(mem) = value & 0x3FF0;
|
||||
return false;
|
||||
}
|
||||
|
||||
icase(toSPR_SADR)
|
||||
{
|
||||
// Address must be QW aligned and fit in the 16K range of SPR
|
||||
psHu32(mem) = value & 0x3FF0;
|
||||
return false;
|
||||
}
|
||||
|
||||
icase(D9_CHCR) // dma9 - toSPR
|
||||
{
|
||||
DMA_LOG("SPR1dma EXECUTE (toSPR), value=0x%x", value);
|
||||
|
@ -420,6 +434,7 @@ __fi bool dmacWrite32( u32 mem, mem32_t& value )
|
|||
cpuTestDMACInts();
|
||||
return false;
|
||||
}
|
||||
|
||||
icase(DMAC_STAT)
|
||||
{
|
||||
HW_LOG("DMAC_STAT Write 32bit %x", value);
|
||||
|
|
Loading…
Reference in New Issue