From: notaz Date: Sun, 21 Nov 2010 14:49:37 +0000 (+0200) Subject: make sure all branches link X-Git-Tag: r1~67 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=commitdiff_plain;h=e80343e2eb43452aa1518f78a5cc62f7ac55b163 make sure all branches link --- diff --git a/libpcsxcore/new_dynarec/assem_arm.c b/libpcsxcore/new_dynarec/assem_arm.c index 6d0a40d3..4af1566d 100644 --- a/libpcsxcore/new_dynarec/assem_arm.c +++ b/libpcsxcore/new_dynarec/assem_arm.c @@ -826,7 +826,13 @@ u_int genimm(u_int imm,u_int *encoded) u_int genjmp(u_int addr) { int offset=addr-(int)out-8; - if(offset<-33554432||offset>=33554432) return 0; + if(offset<-33554432||offset>=33554432) { + if (addr>2) { + printf("genjmp: out of range: %08x\n", offset); + exit(1); + } + return 0; + } return ((u_int)offset>>2)&0xffffff; }