Open DesperateProgrammer opened 5 months ago
I'll add some more changes to the CP15 Caching Instructions and Handling here.
The last commit was a bit bigger / combined, as adding DCache required other things to not break some applications.
Instruction cache is working except:
CP15 Registers Operations:
Update on the status
Instruction cache is working except:
Data cache is working except:
CP15 Registers Operations:
JIT:
This turned out to be quite some rework for the CP15. The Cache is now working including the write-back mode. Cache Debug registers, BIST Cache Test register CP15 Registers and Functions received some documenting comments. Many CP15 related calls received the const-specifier for its arguments when they are not changed in the call.
Unfortunately https://github.com/melonDS-emu/melonDS/issues/359 is still occuring
seems like disabling the pu via the control reg causes melonds to hang under this pr? at least reproduceable under this test rom: zboxtesttest.zip
Thanks for the report and sample Jakly,
I'll check that as soon i got some time.
The instruction and data cache register were not yet implemented in MelonDS and would act different against the hardware by just reading/writing them.
They have no impact on the - not yet implemented - data cache nor on the instruction cache until their implementation progresses.