mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-03-06 21:00:31 +01:00
minor optimization
This commit is contained in:
parent
459c088345
commit
4d4f374e70
2 changed files with 2 additions and 3 deletions
|
@ -1513,7 +1513,6 @@ void ARMv5::ForceInterlock_2()
|
|||
|
||||
void ARMv5::QueueFunction(void (ARMv5::*QueueEntry)(void))
|
||||
{
|
||||
if (QueueEntry == nullptr) return;
|
||||
if ((NDS.ARM9Timestamp >= NDS.ARM9Target) || (MRTrack.Type != MainRAMType::Null))
|
||||
FuncQueue[FuncQueueFill++] = QueueEntry;
|
||||
else
|
||||
|
|
|
@ -443,7 +443,7 @@ bool ARMv5::ICacheLookup(const u32 addr)
|
|||
Store = false;
|
||||
|
||||
RetVal = cacheLine[(addr & (ICACHE_LINELENGTH -1)) / 4];
|
||||
QueueFunction(DelayedQueue);
|
||||
if (DelayedQueue != nullptr) QueueFunction(DelayedQueue);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -556,7 +556,7 @@ void ARMv5::ICacheLookup_2()
|
|||
}
|
||||
Store = false;
|
||||
DataRegion = Mem9_Null;
|
||||
QueueFunction(DelayedQueue);
|
||||
if (DelayedQueue != nullptr) QueueFunction(DelayedQueue);
|
||||
}
|
||||
|
||||
void ARMv5::ICacheInvalidateByAddr(const u32 addr)
|
||||
|
|
Loading…
Add table
Reference in a new issue