#include "cpu.h"
#include "mmu.h"
#include "exec-all.h"
+#include "host-utils.h"
#if defined(CONFIG_USER_ONLY)
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);
* 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])
void OPPROTO op_lz_T0_T1 (void)
{
- if (T1 == 0)
- T0 = 32;
- else
- T0 = __builtin_clz(T1);
+ T0 = clz32(T1);
RETURN();
}