From f2d8ed06f58a16de0ced4f5aafe0ce935a1e95bc Mon Sep 17 00:00:00 2001 From: Stefanos Kornilios Mitsis Poiitidis Date: Mon, 10 Aug 2015 04:55:15 +0200 Subject: [PATCH] arm7rec: Increase the emitter guarantee to 64 KB I run into this with the x86-arm-arm7 backend because of per-block compile and largeish blocks --- core/hw/arm7/arm7.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/hw/arm7/arm7.cpp b/core/hw/arm7/arm7.cpp index a0fe7a7d6..05e53b238 100644 --- a/core/hw/arm7/arm7.cpp +++ b/core/hw/arm7/arm7.cpp @@ -2114,8 +2114,9 @@ s32 ARM::imma; void armEmit32(u32 emit32) { - if (icPtr >= (ICache+ICacheSize-1024)) + if (icPtr >= (ICache + ICacheSize - 64*1024)) { die("ICache is full, invalidate old entries ..."); //ifdebug + } x86e->Emit(op_mov32,ECX,emit32); x86e->Emit(op_call,x86_ptr_imm(virt_arm_op));