Revision 941db528
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); |
b/target-cris/op.c | ||
---|---|---|
18 | 18 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | 19 |
*/ |
20 | 20 |
#include "exec.h" |
21 |
#include "host-utils.h" |
|
21 | 22 |
|
22 | 23 |
#define REGNAME r0 |
23 | 24 |
#define REG (env->regs[0]) |
... | ... | |
1003 | 1004 |
|
1004 | 1005 |
void OPPROTO op_lz_T0_T1 (void) |
1005 | 1006 |
{ |
1006 |
if (T1 == 0) |
|
1007 |
T0 = 32; |
|
1008 |
else |
|
1009 |
T0 = __builtin_clz(T1); |
|
1007 |
T0 = clz32(T1); |
|
1010 | 1008 |
RETURN(); |
1011 | 1009 |
} |
1012 | 1010 |
|
Also available in: Unified diff