diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-10-28 01:44:40 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-10-28 01:44:40 +0000 |
commit | 941db528719cda9ec54e3c5be901e175241141b2 (patch) | |
tree | 921a65610a06812d7bb40ccec38c8546884446f7 /target-cris/op.c | |
parent | 57ba97deb8d85c47dd60e8eb0c8a43687770137a (diff) | |
download | hqemu-941db528719cda9ec54e3c5be901e175241141b2.zip hqemu-941db528719cda9ec54e3c5be901e175241141b2.tar.gz |
Use the shiny new clz helpers.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3464 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-cris/op.c')
-rw-r--r-- | target-cris/op.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/target-cris/op.c b/target-cris/op.c index 3ce9888..6e17719 100644 --- a/target-cris/op.c +++ b/target-cris/op.c @@ -18,6 +18,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "exec.h" +#include "host-utils.h" #define REGNAME r0 #define REG (env->regs[0]) @@ -1003,10 +1004,7 @@ void OPPROTO op_bound_T0_T1 (void) void OPPROTO op_lz_T0_T1 (void) { - if (T1 == 0) - T0 = 32; - else - T0 = __builtin_clz(T1); + T0 = clz32(T1); RETURN(); } |