[6205] CRIS: Use a helper for lz.
Revision: 6205
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6205 Author: edgar_igl Date: 2009-01-07 13:19:21 +0000 (Wed, 07 Jan 2009)
Log Message:
-----------
CRIS: Use a helper for lz.
Signed-off-by Edgar E. Iglesias <[email protected]>
Modified Paths:
--------------
trunk/target-cris/helper.h
trunk/target-cris/op_helper.c
trunk/target-cris/translate.c
Modified: trunk/target-cris/helper.h
===================================================================
target-cris/helper.h +1 -0
@@ -10,6 +10,7 @@ DEF_HELPER_2(movl_sreg_reg, void, i32, i32) DEF_HELPER_2(movl_reg_sreg, void, i32, i32) +DEF_HELPER_FLAGS_1 (lz,TCG_CALL_PURE , i32, i32);DEF_HELPER_FLAGS_3 (btst,TCG_CALL_PURE , i32, i32, i32, i32);DEF_HELPER_0 (evaluate_flags_muls, void)
Modified: trunk/target-cris/op_helper.c
===================================================================
target-cris/op_helper.c +6 -0
@@ -23,6 +23,7 @@#include "exec.h" #include "mmu.h" #include "helper.h" +#include "host-utils.h" #define D (x)
@@ -243,6 +244,11 @@ env->pregs[PR_CCS ] |=M_FLAG ; } +uint32_t helper_lz (uint32_t t0) +{ +return clz32 (t0); +} +uint32_t helper_btst (uint32_t t0,uint32_t t1,uint32_t ccs) {/* FIXME: clean this up. */
Modified: trunk/target-cris/translate.c
===================================================================
target-cris/translate.c +1 -69
82 lines not on this page · raw message