still dumb

This commit is contained in:
Jaklyy 2024-10-15 21:08:46 -04:00
parent 3fcdc45029
commit c605c93d8e
1 changed files with 4 additions and 4 deletions

View File

@ -899,10 +899,10 @@ void ARMv5::DCacheClearByASetAndWay(const u8 cacheSet, const u8 cacheLine)
if (WBDelay > NDS.ARM9Timestamp) NDS.ARM9Timestamp = WBDelay; if (WBDelay > NDS.ARM9Timestamp) NDS.ARM9Timestamp = WBDelay;
u8 cyclesn = NDS.ARM9MemTimings[tag>>14][2]; u8 cyclesn = NDS.ARM9MemTimings[tag>>14][2];
if ((tag >> 24) == 0x02) cyclesn = (cyclesn - 2) & 0x80; if ((tag >> 24) == 0x02) cyclesn = (cyclesn - 2) | 0x80;
u8 cycless = NDS.ARM9MemTimings[tag>>14][3]; u8 cycless = NDS.ARM9MemTimings[tag>>14][3];
if ((tag >> 24) == 0x02) cycless = (cycless - 2) & 0x80; if ((tag >> 24) == 0x02) cycless = (cycless - 2) | 0x80;
WriteBufferWrite(tag, 3, 0); WriteBufferWrite(tag, 3, 0);
WriteBufferWrite(ptr[0], 2, cyclesn, tag+0x00); WriteBufferWrite(ptr[0], 2, cyclesn, tag+0x00);
@ -916,10 +916,10 @@ void ARMv5::DCacheClearByASetAndWay(const u8 cacheSet, const u8 cacheLine)
if (WBDelay > NDS.ARM9Timestamp) NDS.ARM9Timestamp = WBDelay; if (WBDelay > NDS.ARM9Timestamp) NDS.ARM9Timestamp = WBDelay;
u8 cyclesn = NDS.ARM9MemTimings[tag>>14][2]; u8 cyclesn = NDS.ARM9MemTimings[tag>>14][2];
if ((tag >> 24) == 0x02) cyclesn = (cyclesn - 2) & 0x80; if ((tag >> 24) == 0x02) cyclesn = (cyclesn - 2) | 0x80;
u8 cycless = NDS.ARM9MemTimings[tag>>14][3]; u8 cycless = NDS.ARM9MemTimings[tag>>14][3];
if ((tag >> 24) == 0x02) cycless = (cycless - 2) & 0x80; if ((tag >> 24) == 0x02) cycless = (cycless - 2) | 0x80;
WriteBufferWrite(tag+0x10, 3, 0); WriteBufferWrite(tag+0x10, 3, 0);
WriteBufferWrite(ptr[4], 2, cyclesn, tag+0x10); WriteBufferWrite(ptr[4], 2, cyclesn, tag+0x10);