summaryrefslogtreecommitdiffstats
path: root/semihosting
diff options
context:
space:
mode:
authorPeter Maydell2021-09-08 17:44:04 +0200
committerLaurent Vivier2021-09-13 20:35:45 +0200
commit85b4fa0cd189311dc1c69714e669b5a12b0552f6 (patch)
treee10a886109a18acb3005d0415b01e63808ecda5a /semihosting
parentlinux-user: Split linux-user internals out of qemu.h (diff)
downloadqemu-85b4fa0cd189311dc1c69714e669b5a12b0552f6.tar.gz
qemu-85b4fa0cd189311dc1c69714e669b5a12b0552f6.tar.xz
qemu-85b4fa0cd189311dc1c69714e669b5a12b0552f6.zip
linux-user: Don't include gdbstub.h in qemu.h
Currently the linux-user qemu.h pulls in gdbstub.h. There's no real reason why it should do this; include it directly from the C files which require it, and drop the include line in qemu.h. (Note that several of the C files previously relying on this indirect include were going out of their way to only include gdbstub.h conditionally on not CONFIG_USER_ONLY!) Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20210908154405.15417-9-peter.maydell@linaro.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'semihosting')
-rw-r--r--semihosting/arm-compat-semi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/semihosting/arm-compat-semi.c b/semihosting/arm-compat-semi.c
index 1c29146dcf..01badea99c 100644
--- a/semihosting/arm-compat-semi.c
+++ b/semihosting/arm-compat-semi.c
@@ -37,12 +37,12 @@
#include "semihosting/console.h"
#include "semihosting/common-semi.h"
#include "qemu/timer.h"
+#include "exec/gdbstub.h"
#ifdef CONFIG_USER_ONLY
#include "qemu.h"
#define COMMON_SEMI_HEAP_SIZE (128 * 1024 * 1024)
#else
-#include "exec/gdbstub.h"
#include "qemu/cutils.h"
#ifdef TARGET_ARM
#include "hw/arm/boot.h"