mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-26 15:50:00 -06:00
improve ldm timings
I believe this also applies to other loads as well, but currently untested.
This commit is contained in:
13
src/ARM.h
13
src/ARM.h
@ -325,18 +325,7 @@ public:
|
||||
Cycles += numC + numI;
|
||||
}
|
||||
|
||||
void AddCycles_CDI() override
|
||||
{
|
||||
// LDR/LDM cycles. ARM9 seems to skip the internal cycle there.
|
||||
// TODO: ITCM data fetches shouldn't be parallelized, they say
|
||||
s32 numC = (R[15] & 0x2) ? 0 : CodeCycles;
|
||||
s32 numD = DataCycles;
|
||||
|
||||
//if (DataRegion != CodeRegion)
|
||||
Cycles += std::max(numC + numD - 6, std::max(numC, numD));
|
||||
//else
|
||||
// Cycles += numC + numD;
|
||||
}
|
||||
void AddCycles_CDI() override;
|
||||
|
||||
void AddCycles_CD() override
|
||||
{
|
||||
|
Reference in New Issue
Block a user