summaryrefslogtreecommitdiff
path: root/include/exec
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2014-01-14 07:00:28 +0100
committerMichael Tokarev <mjt@tls.msk.ru>2014-01-15 23:34:17 +0400
commitfb3ecb7ea40c44d15091143c4336993e7165fc4f (patch)
treea946d92836dc99aa20734eda7d6a45ca1ac589e8 /include/exec
parentbf2eaf718e2fcc5cc975326495bf03de7305bbe4 (diff)
downloadqemu-fb3ecb7ea40c44d15091143c4336993e7165fc4f.tar.gz
exec: Exclude non portable function for MinGW
cpu_physical_memory_set_dirty_lebitmap calls getpageaddr and ffsl which are unavailable for MinGW. As the function is unused for MinGW, it can simply be excluded from compilation. Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'include/exec')
-rw-r--r--include/exec/ram_addr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/exec/ram_addr.h b/include/exec/ram_addr.h
index 33c8acc02e..481a447417 100644
--- a/include/exec/ram_addr.h
+++ b/include/exec/ram_addr.h
@@ -79,6 +79,7 @@ static inline void cpu_physical_memory_set_dirty_range(ram_addr_t start,
xen_modified_memory(start, length);
}
+#if !defined(_WIN32)
static inline void cpu_physical_memory_set_dirty_lebitmap(unsigned long *bitmap,
ram_addr_t start,
ram_addr_t pages)
@@ -127,6 +128,7 @@ static inline void cpu_physical_memory_set_dirty_lebitmap(unsigned long *bitmap,
}
}
}
+#endif /* not _WIN32 */
static inline void cpu_physical_memory_clear_dirty_range(ram_addr_t start,
ram_addr_t length,