Merge Icache emulation from PCSX Redux + Senquack changes from PCSX4ALL
See (Redux) :
https://github.com/grumpycoders/pcsx-redux/commit/
1923ce5
See original icache implementation (mirror of PCSX Reloaded):
https://github.com/gameblabla/pcsxr/commit/
6916151
Without icache emulation, F1 2001 will greatly misbehave :
if you accelerate, the car will go around like crazy.
With icache emulation, it works as intended.
Note that our code is slightly different from theirs as i found out that
having the icache arrays in psxregs would cause crashes so instead
what i'm doing is to taking them out of there and only allocating them
on the heap (due to their great size).
Known issue(s) : Instruction cache emulation code fails to run
Spyro 2 PAL version. (or is it because of SBI?)
Co-authored-by: Nicolas Noble <nicolasnoble@users.noreply.github.com>
Co-authored-by: senquack <dansilsby@gmail.com>