Jan Kiszka wrote:
Why are you using uint64_t?  It would be more natural to use ffsll and
the natural type of the bitmap vector.

Better don't ask how I interpreted the ffs doc.

It's a misdesigned API anyway.

+ if (version_id >= 9) {
+        qemu_get_sbe32s(f, &pending_irq);
+        memset(&env->interrupt_bitmap, 0, sizeof(env->interrupt_bitmap));
+        if (pending_irq >= 0) {
+            env->interrupt_bitmap[pending_irq / 64] |= 1 << (pending_irq % 64);

(uint64_t)1 so we don't lose the upper word.



--
error compiling committee.c: too many arguments to function

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to