summary refs log tree commit diff stats
path: root/target-cris/op_helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'target-cris/op_helper.c')
-rw-r--r--target-cris/op_helper.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/target-cris/op_helper.c b/target-cris/op_helper.c
index 6b23980740..144da9c3e1 100644
--- a/target-cris/op_helper.c
+++ b/target-cris/op_helper.c
@@ -23,6 +23,7 @@
 #include "exec.h"
 #include "mmu.h"
 #include "helper.h"
+#include "host-utils.h"
 
 #define D(x)
 
@@ -243,6 +244,11 @@ void helper_rfn(void)
     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.  */