Use the shiny new clz helpers.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3464 c046a42c-6fe2-441c-8c8c-71466251a162
diff --git a/target-cris/helper.c b/target-cris/helper.c
index 9830560..d719593 100644
--- a/target-cris/helper.c
+++ b/target-cris/helper.c
@@ -26,6 +26,7 @@
#include "cpu.h"
#include "mmu.h"
#include "exec-all.h"
+#include "host-utils.h"
#if defined(CONFIG_USER_ONLY)
@@ -134,8 +135,7 @@
return;
}
- irqnum = 31 -
- __builtin_clz(env->pending_interrupts);
+ irqnum = 31 - clz32(env->pending_interrupts);
irqnum += 0x30;
ebp = env->pregs[SR_EBP];
isr = ldl_code(ebp + irqnum * 4);