Re: [Qemu-devel] [PATCH] spapr: Fix spapr_populate_memory() to compile on windows

2014-09-08 Thread Alexander Graf
On 08.09.14 01:59, Alexey Kardashevskiy wrote: > This replaces gcc's ffsl() function ("find first bit set in a word") > with QEMU's ctzl ("count trailing zeros"). There are no corner cases > in the affected code so simple replacement ffsl()-1 by ctzl() works. > > Signed-off-by: Alexey Kardashevs

Re: [Qemu-devel] [PATCH] spapr: Fix spapr_populate_memory() to compile on windows

2014-09-07 Thread David Gibson
On Mon, Sep 08, 2014 at 09:59:04AM +1000, Alexey Kardashevskiy wrote: > This replaces gcc's ffsl() function ("find first bit set in a word") > with QEMU's ctzl ("count trailing zeros"). There are no corner cases > in the affected code so simple replacement ffsl()-1 by ctzl() works. > > Signed-off-

[Qemu-devel] [PATCH] spapr: Fix spapr_populate_memory() to compile on windows

2014-09-07 Thread Alexey Kardashevskiy
This replaces gcc's ffsl() function ("find first bit set in a word") with QEMU's ctzl ("count trailing zeros"). There are no corner cases in the affected code so simple replacement ffsl()-1 by ctzl() works. Signed-off-by: Alexey Kardashevskiy --- hw/ppc/spapr.c | 4 ++-- 1 file changed, 2 insert