Revision 6ad8702a
b/target-i386/machine.c | ||
---|---|---|
2 | 2 |
#include "hw/boards.h" |
3 | 3 |
#include "hw/pc.h" |
4 | 4 |
#include "hw/isa.h" |
5 |
#include "host-utils.h" |
|
5 | 6 |
|
6 | 7 |
#include "exec-all.h" |
7 | 8 |
#include "kvm.h" |
... | ... | |
148 | 149 |
to find it and save its number instead (-1 for none). */ |
149 | 150 |
pending_irq = -1; |
150 | 151 |
for (i = 0; i < ARRAY_SIZE(env->interrupt_bitmap); i++) { |
151 |
bit = ffsll(env->interrupt_bitmap[i]);
|
|
152 |
if (bit) {
|
|
153 |
pending_irq = i * 64 + bit - 1;
|
|
152 |
if (env->interrupt_bitmap[i]) {
|
|
153 |
bit = ctz64(env->interrupt_bitmap[i]);
|
|
154 |
pending_irq = i * 64 + bit; |
|
154 | 155 |
break; |
155 | 156 |
} |
156 | 157 |
} |
Also available in: Unified diff