mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
Use the shiny new clz helpers.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3464 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
57ba97deb8
commit
941db52871
2 changed files with 4 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue