diff options
Diffstat (limited to 'target-cris/helper.c')
-rw-r--r-- | target-cris/helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target-cris/helper.c b/target-cris/helper.c index 98305605a1..d719593269 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 @@ void do_interrupt(CPUState *env) 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); |