summaryrefslogtreecommitdiff
path: root/target-cris/op_helper.c
diff options
context:
space:
mode:
authoredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-07 13:19:21 +0000
committeredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-07 13:19:21 +0000
commitc38ac98da54d2da7a71efde0cbf5ad9021dac4e4 (patch)
tree2809c60bcfba776eb7369eecef6142724c4a84ea /target-cris/op_helper.c
parent85220fba3510f51e0621854d19cf128b78cc0d20 (diff)
downloadqemu-c38ac98da54d2da7a71efde0cbf5ad9021dac4e4.tar.gz
CRIS: Use a helper for lz.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6205 c046a42c-6fe2-441c-8c8c-71466251a162
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. */