From e57621e0f476eaec8770927da94f3eea8304341f Mon Sep 17 00:00:00 2001 From: notaz Date: Sun, 9 Jul 2023 01:47:33 +0300 Subject: [PATCH] lightrec: hack to fix a wrong assumption --- deps/lightrec/emitter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.5