xen: replace ffsl with ctzl
ffsl is a GNU extension and not available in musl libc.
See also commit fbeadf50
(bitops: unify bitops_ffsl with the one in
host-utils.h, call it bitops_ctzl) on why ctzl should be used instead
of ffsl.
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
[PMM: rebased to accommodate file rename to xen-hvm.c]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
6ad3f09bd4
commit
adf9d70b0d
@ -511,7 +511,7 @@ static void xen_sync_dirty_bitmap(XenIOState *state,
|
||||
for (i = 0; i < ARRAY_SIZE(bitmap); i++) {
|
||||
unsigned long map = bitmap[i];
|
||||
while (map != 0) {
|
||||
j = ffsl(map) - 1;
|
||||
j = ctzl(map);
|
||||
map &= ~(1ul << j);
|
||||
memory_region_set_dirty(framebuffer,
|
||||
(i * width + j) * TARGET_PAGE_SIZE,
|
||||
|
Loading…
Reference in New Issue
Block a user