Since commit 687ca797893ca1e853, the code that looks at the debug define DEBUG_REMAP is all in uaccess.c; move the #undef line to there from qemu.h (thus reducing significantly the amount of code that gets recompiled if you need to turn the debug on).
Signed-off-by: Peter Maydell <peter.mayd...@linaro.org> --- linux-user/qemu.h | 3 --- linux-user/uaccess.c | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/linux-user/qemu.h b/linux-user/qemu.h index 5c713fa8ab2..acc215b1a48 100644 --- a/linux-user/qemu.h +++ b/linux-user/qemu.h @@ -3,9 +3,6 @@ #include "cpu.h" #include "exec/cpu_ldst.h" - -#undef DEBUG_REMAP - #include "exec/user/abitypes.h" #include "syscall_defs.h" diff --git a/linux-user/uaccess.c b/linux-user/uaccess.c index 425cbf677f7..56fb4358d4f 100644 --- a/linux-user/uaccess.c +++ b/linux-user/uaccess.c @@ -5,6 +5,8 @@ #include "qemu.h" #include "user-internals.h" +#undef DEBUG_REMAP + void *lock_user(int type, abi_ulong guest_addr, ssize_t len, bool copy) { void *host_addr; -- 2.20.1