Toolchains of some platforms don't have ffsl() function. To solve
it, just use compiler's builtin ffsl().
Change-Id: I176aabe730b0bf8afbd5a5d9323e73b203855cdb
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
/* currently we fake the dirty bitmap sync, always dirty */
// avoid implicit declaration warning on Windows
-int ffsl(long value);
+#ifndef ffsl
+#define ffsl __builtin_ffsl
+#endif
static void hax_log_sync(MemoryListener *listener, MemoryRegionSection *section)
{
MemoryRegion *mr = section->mr;