PowerPC: Parametrize DMAU macro.

This commit is contained in:
Admiral H. Curtiss committed 2023-01-27 15:22:40 +01:00
1 parent 31483e492e
commit 2374365274
2 files changed
+3 -3

No files matched your search

@@ -392,9 +392,9 @@ void Interpreter::mtspr(UGeckoInstruction inst)
// Total fake, we ignore that DMAs take time.
if (DMAL.DMA_T)
{
const u32 mem_address = DMAU.MEM_ADDR << 5;
const u32 mem_address = DMAU(PowerPC::ppcState).MEM_ADDR << 5;
const u32 cache_address = DMAL.LC_ADDR << 5;
u32 length = ((DMAU.DMA_LEN_U << 2) | DMAL.DMA_LEN_L);
u32 length = ((DMAU(PowerPC::ppcState).DMA_LEN_U << 2) | DMAL.DMA_LEN_L);
if (length == 0)
length = 128;