aboutsummaryrefslogtreecommitdiffstats
path: root/target-mips/op_helper.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-21 02:04:15 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-21 02:04:15 +0000
commit30898801ad8c70708ead392b243ca8bcd28ca722 (patch)
tree2a3c60c0c05b12bb3470ebd8c3832761b0b30069 /target-mips/op_helper.c
parent20c4c97c9b9bcc413371e1b78e7db5306eb7fdd6 (diff)
Switch MIPS clo/clz and the condition tests to TCG.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4507 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips/op_helper.c')
-rw-r--r--target-mips/op_helper.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/target-mips/op_helper.c b/target-mips/op_helper.c
index 3bb80954e..50f353a4d 100644
--- a/target-mips/op_helper.c
+++ b/target-mips/op_helper.c
@@ -71,6 +71,16 @@ void do_restore_state (void *pc_ptr)
}
}
+void do_clo (void)
+{
+ T0 = clo32(T0);
+}
+
+void do_clz (void)
+{
+ T0 = clz32(T0);
+}
+
#if defined(TARGET_MIPS64)
#if TARGET_LONG_BITS > HOST_LONG_BITS
/* Those might call libgcc functions. */