mirror of
https://github.com/emu-russia/pureikyubu.git
synced 2024-05-18 12:20:25 -04:00
parent
86775aec93
commit
63303f1572
|
@ -63,7 +63,7 @@
|
|||
},
|
||||
|
||||
"CacheLog": {
|
||||
"help": "Set cache operations log mode",
|
||||
"help": "Set cache operations log mode (0: none, 1: cache commands, 2: all)",
|
||||
"args": 1,
|
||||
"usage": [
|
||||
"Syntax: CacheLog <0|1|2>",
|
||||
|
|
|
@ -78,6 +78,10 @@ static void DITransferComplete()
|
|||
PIAssertInt(PI_INTERRUPT_DI);
|
||||
}
|
||||
|
||||
if (di.log) {
|
||||
Report(Channel::DI, "TransferComplete\n");
|
||||
}
|
||||
|
||||
DVD::DDU->SetTransferCallbacks(DIHostToDduCallbackCommand, DIDduToHostCallback);
|
||||
}
|
||||
|
||||
|
@ -129,7 +133,8 @@ static uint8_t DIHostToDduCallbackData()
|
|||
if (DILEN)
|
||||
{
|
||||
uint32_t dimar = DIMAR & DI_DIMAR_MASK;
|
||||
PIReadBurst(dimar, di.dmaFifo);
|
||||
uint8_t* ptr = (uint8_t *)MIGetMemoryPointerForIO(dimar);
|
||||
memcpy(ptr, di.dmaFifo, 32);
|
||||
DIMAR += 32;
|
||||
DILEN -= 32;
|
||||
}
|
||||
|
|
|
@ -969,7 +969,7 @@ namespace Gekko
|
|||
if (pa >= cacheSize)
|
||||
return;
|
||||
|
||||
if (IsDirty(pa))
|
||||
if (IsDirty(pa) && !IsInvalid(pa))
|
||||
{
|
||||
CastOut(pa);
|
||||
SetDirty(pa, false);
|
||||
|
@ -1009,7 +1009,7 @@ namespace Gekko
|
|||
if (pa >= cacheSize)
|
||||
return;
|
||||
|
||||
if (IsDirty(pa))
|
||||
if (IsDirty(pa) && !IsInvalid(pa))
|
||||
{
|
||||
CastOut(pa);
|
||||
SetDirty(pa, false);
|
||||
|
|
Loading…
Reference in a new issue