From: notaz Date: Sat, 8 Jul 2023 22:47:33 +0000 (+0300) Subject: lightrec: hack to fix a wrong assumption X-Git-Tag: r24l~321 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e57621e0f476eaec8770927da94f3eea8304341f;p=pcsx_rearmed.git lightrec: hack to fix a wrong assumption --- diff --git a/deps/lightrec/emitter.c b/deps/lightrec/emitter.c index 0eff0ce3..14820e50 100644 --- a/deps/lightrec/emitter.c +++ b/deps/lightrec/emitter.c @@ -1933,10 +1933,11 @@ rec_mtc0(struct lightrec_cstate *state, const struct block *block, u16 offset) break; } - if (block_in_bios(state, block) && c.r.rd == 12) { + if (/*block_in_bios(state, block) &&*/ c.r.rd == 12) { /* If we are running code from the BIOS, handle writes to the * Status register in C. BIOS code may toggle bit 16 which will * map/unmap the RAM, while game code cannot do that. */ + /* ^ wrong, it can execute from 0xa0000000 with isolated cache */ rec_mtc(state, block, offset); return; }