From 99a372c98af1aee0010097625413605fb3a51dbd Mon Sep 17 00:00:00 2001 From: Frode Solheim Date: Mon, 7 Sep 2015 21:23:39 +0200 Subject: [PATCH] JIT: added declaration, removed an unused function --- jit/compemu_midfunc_x86.cpp | 28 +--------------------------- jit/compemu_midfunc_x86.h | 1 + 2 files changed, 2 insertions(+), 27 deletions(-) diff --git a/jit/compemu_midfunc_x86.cpp b/jit/compemu_midfunc_x86.cpp index 7d556433..eb33d08e 100644 --- a/jit/compemu_midfunc_x86.cpp +++ b/jit/compemu_midfunc_x86.cpp @@ -735,33 +735,7 @@ MIDFUNC(3,cmov_l_rr,(RW4 d, RR4 s, IMM cc)) unlock2(d); } MENDFUNC(3,cmov_l_rr,(RW4 d, RR4 s, IMM cc)) -/* -MIDFUNC(1,setzflg_l,(RW4 r)) -{ - if (setzflg_uses_bsf) { - CLOBBER_BSF; - r=rmw(r,4,4); - raw_bsf_l_rr(r,r); - unlock2(r); - } - else { - Dif (live.flags_in_flags!=VALID) { - jit_abort (_T("JIT: setzflg() wanted flags in native flags, they are %d\n"), - live.flags_in_flags); - } - r=readreg(r,4); - { - int f=writereg(S11,4); - int t=writereg(S12,4); - raw_flags_set_zero(f,r,t); - unlock2(f); - unlock2(r); - unlock2(t); - } - } -} -MENDFUNC(1,setzflg_l,(RW4 r)) -*/ + MIDFUNC(3,cmov_l_rm,(RW4 d, IMM s, IMM cc)) { CLOBBER_CMOV; diff --git a/jit/compemu_midfunc_x86.h b/jit/compemu_midfunc_x86.h index cb7f8117..440ccde8 100644 --- a/jit/compemu_midfunc_x86.h +++ b/jit/compemu_midfunc_x86.h @@ -87,6 +87,7 @@ DECLARE_MIDFUNC(push_l_i(IMM i)); DECLARE_MIDFUNC(push_l(RR4 s)); DECLARE_MIDFUNC(clear_16(RW4 r)); DECLARE_MIDFUNC(clear_8(RW4 r)); +DECLARE_MIDFUNC(sign_extend_32_rr(W4 d, RR2 s)); DECLARE_MIDFUNC(sign_extend_16_rr(W4 d, RR2 s)); DECLARE_MIDFUNC(sign_extend_8_rr(W4 d, RR1 s)); DECLARE_MIDFUNC(zero_extend_16_rr(W4 d, RR2 s)); -- 2.47.3