From e9b8dd687782eacba525bc6cc28a9eadc3bd24a5 Mon Sep 17 00:00:00 2001 From: asvitkine <> Date: Thu, 1 Mar 2012 04:15:59 +0000 Subject: [PATCH] always use the version of the code that scans backward on x86 --- SheepShaver/src/kpx_cpu/src/cpu/jit/dyngen.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/SheepShaver/src/kpx_cpu/src/cpu/jit/dyngen.c b/SheepShaver/src/kpx_cpu/src/cpu/jit/dyngen.c index 60e3566e..be6e0b63 100644 --- a/SheepShaver/src/kpx_cpu/src/cpu/jit/dyngen.c +++ b/SheepShaver/src/kpx_cpu/src/cpu/jit/dyngen.c @@ -1783,7 +1783,6 @@ void gen_code(const char *name, const char *demangled_name, } else #if defined(HOST_I386) || defined(HOST_X86_64) -#if defined(CONFIG_FORMAT_COFF) || defined(CONFIG_FORMAT_MACH) { uint8_t *p; p = p_end - 1; @@ -1796,20 +1795,6 @@ void gen_code(const char *name, const char *demangled_name, } copy_size = p - p_start; } -#else - { - int len; - len = p_end - p_start; - if (len == 0) - error("empty code for %s", name); - if (p_end[-1] == 0xc3) { - len--; - } else { - error("ret or jmp expected at the end of %s", name); - } - copy_size = len; - } -#endif #elif defined(HOST_PPC) { uint8_t *p;