From 9c27c19597b17a55de53e8b835712cef5335d62a Mon Sep 17 00:00:00 2001 From: Frode Solheim Date: Mon, 7 Sep 2015 21:19:20 +0200 Subject: [PATCH] JIT signed changes, added a declaration --- jit/compemu.h | 6 +++--- jit/compemu_midfunc_x86.h | 1 + jit/compemu_support.cpp | 2 -- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/jit/compemu.h b/jit/compemu.h index faa4d192..dfc62517 100644 --- a/jit/compemu.h +++ b/jit/compemu.h @@ -201,7 +201,7 @@ typedef struct { uae_u32 val; uae_u8 is_swapped; uae_u8 status; - uae_u8 realreg; + uae_s8 realreg; /* gb-- realreg can hold -1 */ uae_u8 realind; /* The index in the holds[] array */ uae_u8 needflush; uae_u8 validsize; @@ -213,7 +213,7 @@ typedef struct { uae_u32* mem; double val; uae_u8 status; - uae_u8 realreg; + uae_s8 realreg; /* gb-- realreg can hold -1 */ uae_u8 realind; uae_u8 needflush; } freg_status; @@ -292,7 +292,7 @@ typedef struct { extern int touchcnt; -#define IMM uae_u32 +#define IMM uae_s32 #define RR1 uae_u32 #define RR2 uae_u32 #define RR4 uae_u32 diff --git a/jit/compemu_midfunc_x86.h b/jit/compemu_midfunc_x86.h index d3bda8a7..ad138e5b 100644 --- a/jit/compemu_midfunc_x86.h +++ b/jit/compemu_midfunc_x86.h @@ -96,6 +96,7 @@ DECLARE_MIDFUNC(zero_extend_16_rr(W4 d, RR2 s)); DECLARE_MIDFUNC(zero_extend_8_rr(W4 d, RR1 s)); DECLARE_MIDFUNC(imul_64_32(RW4 d, RW4 s)); DECLARE_MIDFUNC(mul_64_32(RW4 d, RW4 s)); +DECLARE_MIDFUNC(simulate_bsf(W4 tmp, RW4 s)); DECLARE_MIDFUNC(imul_32_32(RW4 d, RR4 s)); DECLARE_MIDFUNC(mul_32_32(RW4 d, RR4 s)); DECLARE_MIDFUNC(mov_b_rr(W1 d, RR1 s)); diff --git a/jit/compemu_support.cpp b/jit/compemu_support.cpp index 4e7fa3b7..3b8cf90d 100644 --- a/jit/compemu_support.cpp +++ b/jit/compemu_support.cpp @@ -1188,7 +1188,6 @@ static uae_s8 nstate[N_REGS]; #define L_NEEDED -2 #define L_UNNEEDED -3 -#if USE_MATCH static inline void big_to_small_state(bigstate * /* b */, smallstate * s) { int i; @@ -1221,7 +1220,6 @@ static inline int callers_need_recompile(bigstate * /* b */, smallstate * s) * callers */ return 0; } -#endif static inline void log_startblock(void) { -- 2.47.3