Revision 941db528 target-cris/helper.c
b/target-cris/helper.c | ||
---|---|---|
26 | 26 |
#include "cpu.h" |
27 | 27 |
#include "mmu.h" |
28 | 28 |
#include "exec-all.h" |
29 |
#include "host-utils.h" |
|
29 | 30 |
|
30 | 31 |
#if defined(CONFIG_USER_ONLY) |
31 | 32 |
|
... | ... | |
134 | 135 |
return; |
135 | 136 |
} |
136 | 137 |
|
137 |
irqnum = 31 - |
|
138 |
__builtin_clz(env->pending_interrupts); |
|
138 |
irqnum = 31 - clz32(env->pending_interrupts); |
|
139 | 139 |
irqnum += 0x30; |
140 | 140 |
ebp = env->pregs[SR_EBP]; |
141 | 141 |
isr = ldl_code(ebp + irqnum * 4); |
Also available in: Unified diff