From ee8d7dfd395d5aa8e6d5f09fabef9f2d13b94a28 Mon Sep 17 00:00:00 2001 From: notaz Date: Thu, 3 Aug 2023 01:24:14 +0300 Subject: [PATCH] drc: adjust MAXBLOCK it was stopping at MAXBLOCK/2 in most cases anyway, so adjust the arrays for the size that's actually used --- libpcsxcore/new_dynarec/new_dynarec.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libpcsxcore/new_dynarec/new_dynarec.c b/libpcsxcore/new_dynarec/new_dynarec.c index dcf940d3..bb5b8629 100644 --- a/libpcsxcore/new_dynarec/new_dynarec.c +++ b/libpcsxcore/new_dynarec/new_dynarec.c @@ -81,7 +81,7 @@ static Jit g_jit; #endif #define RAM_SIZE 0x200000 -#define MAXBLOCK 4096 +#define MAXBLOCK 2048 #define MAX_OUTPUT_BLOCK_SIZE 262144 #define EXPIRITY_OFFSET (MAX_OUTPUT_BLOCK_SIZE * 2) #define PAGE_COUNT 1024 @@ -6972,7 +6972,8 @@ static noinline void pass1_disassemble(u_int pagelimit) // Don't recompile stuff that's already compiled if(check_addr(start+i*4+4)) done=1; // Don't get too close to the limit - if(i>MAXBLOCK/2) done=1; + if (i > MAXBLOCK - 64) + done = 1; } if (dops[i].itype == HLECALL) stop = 1; @@ -6992,7 +6993,8 @@ static noinline void pass1_disassemble(u_int pagelimit) //assert(i 8 || dops[i].opcode == 0x11)) { done=stop_after_jal=1; -- 2.39.5