diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-04-29 16:17:28 +0200 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2014-06-11 00:25:06 +0100 |
commit | adf9d70b0dd754b4626fd0ae2b52014060cf7ba4 (patch) | |
tree | 5ae9764c9034abc5b16215b64cd8b7a9f9273dd6 | |
parent | 6ad3f09bd457275f534810c2fce90fb03305a91a (diff) |
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>
-rw-r--r-- | xen-hvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |