]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
gdbstub: Avoid including 'cpu.h' in 'gdbstub/helpers.h'
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 18 Apr 2024 14:45:33 +0000 (16:45 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 26 Apr 2024 13:31:37 +0000 (15:31 +0200)
We only need the "exec/tswap.h" and "cpu-param.h" headers.
Only include "cpu.h" in the target gdbstub.c source files.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20240418192525.97451-20-philmd@linaro.org>

include/gdbstub/helpers.h
target/avr/gdbstub.c
target/tricore/gdbstub.c

index 6277a858a111be8e7010fce0dca5180f0e3a542e..26140ef1ac09113e1dd1694245ecb46868d308bd 100644 (file)
@@ -16,7 +16,8 @@
 #error "gdbstub helpers should only be included by target specific code"
 #endif
 
-#include "cpu.h"
+#include "exec/tswap.h"
+#include "cpu-param.h"
 
 /*
  * The GDB remote protocol transfers values in target byte order. As
index 2eeee2bf4e19345d6d4f4420b359c3570025eb68..d6d3c1479b3c8af3da151074d09b650fdc9a63da 100644 (file)
@@ -20,6 +20,7 @@
 
 #include "qemu/osdep.h"
 #include "gdbstub/helpers.h"
+#include "cpu.h"
 
 int avr_cpu_gdb_read_register(CPUState *cs, GByteArray *mem_buf, int n)
 {
index f9309c5e27761900cae769f53e60571179bb0505..29a70051ffeaa155e8fc2c0ed31e18762d12b759 100644 (file)
@@ -19,6 +19,7 @@
 
 #include "qemu/osdep.h"
 #include "gdbstub/helpers.h"
+#include "cpu.h"
 
 
 #define LCX_REGNUM         32