hax-all: just use compiler's builtin ffsl()
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Thu, 22 Oct 2015 05:04:40 +0000 (14:04 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Fri, 23 Oct 2015 07:21:36 +0000 (16:21 +0900)
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>
target-i386/hax-all.c

index 3ca3981..f91706c 100644 (file)
@@ -380,7 +380,9 @@ hax_region_del(MemoryListener *listener, MemoryRegionSection *section)
 
 /* 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;