jit: decrease blockcache AddrMapping size for ARM9

This commit is contained in:
RSDuck
2019-07-21 13:36:48 +02:00
parent 03b321f540
commit 4deecc7d65
5 changed files with 77 additions and 38 deletions

View File

@ -363,7 +363,9 @@ CompiledBlock Compiler::CompileBlock(ARM* cpu, FetchedInstr instrs[], int instrs
CompiledBlock res = (CompiledBlock)GetWritableCodePtr();
if (!IsMapped(Num, R15 - Thumb ? 2 : 4))
if (!(Num == 0
? IsMapped<0>(R15 - (Thumb ? 2 : 4))
: IsMapped<1>(R15 - (Thumb ? 2 : 4))))
{
printf("Trying to compile a block in unmapped memory\n");
}