]> git.proxmox.com Git - mirror_qemu.git/commit
i386/kvm: Fix build with -m32
authorMax Reitz <mreitz@redhat.com>
Mon, 24 Jun 2019 19:39:13 +0000 (21:39 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 5 Jul 2019 20:16:46 +0000 (22:16 +0200)
commit9dc83cd9c3cd766263a7180bccaf67afe970d816
tree49baa2be678eb6557ea3b00a3961e34f017bb502
parentc20b139620498b2f158b52e0c4ad7f6de35a520e
i386/kvm: Fix build with -m32

find_next_bit() takes a pointer of type "const unsigned long *", but the
first argument passed here is a "uint64_t *".  These types are
incompatible when compiling qemu with -m32.

Just use ctz64() instead.

Fixes: c686193072a47032d83cb4e131dc49ae30f9e5d
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20190624193913.28343-1-mreitz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/kvm.c