[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH for-6.2 10/10] linux-user: Move DEBUG_REMAP undef to uaccess.c
From: |
Peter Maydell |
Subject: |
[PATCH for-6.2 10/10] linux-user: Move DEBUG_REMAP undef to uaccess.c |
Date: |
Sun, 18 Jul 2021 00:21:03 +0100 |
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.maydell@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
- Re: [PATCH for-6.2 01/10] linux-user: Fix coding style nits in qemu.h, (continued)
- [PATCH for-6.2 03/10] linux-user: Split signal-related prototypes into sighandling.h, Peter Maydell, 2021/07/17
- [PATCH for-6.2 05/10] linux-user: Split mmap prototypes into user-mmap.h, Peter Maydell, 2021/07/17
- [PATCH for-6.2 04/10] linux-user: Split loader-related prototypes into loader.h, Peter Maydell, 2021/07/17
- [PATCH for-6.2 06/10] linux-user: Split safe-syscall macro into its own header, Peter Maydell, 2021/07/17
- [PATCH for-6.2 08/10] linux-user: Don't include gdbstub.h in qemu.h, Peter Maydell, 2021/07/17
- [PATCH for-6.2 10/10] linux-user: Move DEBUG_REMAP undef to uaccess.c,
Peter Maydell <=
- [PATCH for-6.2 07/10] linux-user: Split linux-user internals out of qemu.h, Peter Maydell, 2021/07/17
- [PATCH for-6.2 09/10] linux-user: Drop unneeded includes from qemu.h, Peter Maydell, 2021/07/17