summaryrefslogtreecommitdiffstats
path: root/translate-all.c
diff options
context:
space:
mode:
authorPeter Maydell2015-01-15 11:08:46 +0100
committerPeter Maydell2015-01-15 11:08:46 +0100
commitdf58887b20fab8fe8a6dcca4db30cd4e4077d53a (patch)
treef4831cf96c57d4974e6fe6d61b5ee98114de72e0 /translate-all.c
parentMerge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (diff)
parentvl.c: fix some alignment issues (diff)
downloadqemu-df58887b20fab8fe8a6dcca4db30cd4e4077d53a.tar.gz
qemu-df58887b20fab8fe8a6dcca4db30cd4e4077d53a.tar.xz
qemu-df58887b20fab8fe8a6dcca4db30cd4e4077d53a.zip
Merge remote-tracking branch 'remotes/mjt/tags/pull-trivial-patches-2015-01-15' into staging
trivial patches for 2015-01-15 # gpg: Signature made Thu 15 Jan 2015 08:26:26 GMT using RSA key ID A4C3D7DB # gpg: Good signature from "Michael Tokarev <mjt@tls.msk.ru>" # gpg: aka "Michael Tokarev <mjt@corpit.ru>" # gpg: aka "Michael Tokarev <mjt@debian.org>" * remotes/mjt/tags/pull-trivial-patches-2015-01-15: vl.c: fix some alignment issues blizzard: do not depend on VGA internals Makefile: Remove config.status and common.env during 'make distclean' target-openrisc: bugfix for dec_sys to decode instructions correctly Do not hang on full PTY misc: Fix new typos in comments target-arm: Fix typo in comment (seperately -> separately) target-tricore: Fix new typos migration/qemu-file.c: Don't shift left into sign bit translate-all: Mark map_exec() with the 'unused' attribute tests/hd-geo-test.c: Remove unused test_image variable vt82c686: avoid out-of-bounds read Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'translate-all.c')
-rw-r--r--translate-all.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/translate-all.c b/translate-all.c
index 8fa4378055..687ba7d177 100644
--- a/translate-all.c
+++ b/translate-all.c
@@ -276,14 +276,14 @@ bool cpu_restore_state(CPUState *cpu, uintptr_t retaddr)
}
#ifdef _WIN32
-static inline void map_exec(void *addr, long size)
+static __attribute__((unused)) void map_exec(void *addr, long size)
{
DWORD old_protect;
VirtualProtect(addr, size,
PAGE_EXECUTE_READWRITE, &old_protect);
}
#else
-static inline void map_exec(void *addr, long size)
+static __attribute__((unused)) void map_exec(void *addr, long size)
{
unsigned long start, end, page_size;