summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Maydell2021-11-29 21:05:08 +0100
committerPeter Maydell2021-12-15 11:35:26 +0100
commit70a37f7faacbff7dcafdd444db15a264e02b8db5 (patch)
tree46cc6be21443d2769969e832c5d37024db87d395
parentinclude/hw/i386: Don't include qemu-common.h in .h files (diff)
downloadqemu-70a37f7faacbff7dcafdd444db15a264e02b8db5.tar.gz
qemu-70a37f7faacbff7dcafdd444db15a264e02b8db5.tar.xz
qemu-70a37f7faacbff7dcafdd444db15a264e02b8db5.zip
target/hexagon/cpu.h: don't include qemu-common.h
The qemu-common.h header is not supposed to be included from any other header files, only from .c files (as documented in a comment at the start of it). Move the include to linux-user/hexagon/cpu_loop.c, which needs it for the declaration of cpu_exec_step_atomic(). Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Taylor Simpson <tsimpson@quicinc.com> Message-id: 20211129200510.1233037-3-peter.maydell@linaro.org
-rw-r--r--linux-user/hexagon/cpu_loop.c1
-rw-r--r--target/hexagon/cpu.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/hexagon/cpu_loop.c b/linux-user/hexagon/cpu_loop.c
index 6b24cbaba9..e47f8348d5 100644
--- a/linux-user/hexagon/cpu_loop.c
+++ b/linux-user/hexagon/cpu_loop.c
@@ -19,6 +19,7 @@
*/
#include "qemu/osdep.h"
+#include "qemu-common.h"
#include "qemu.h"
#include "user-internals.h"
#include "cpu_loop-common.h"
diff --git a/target/hexagon/cpu.h b/target/hexagon/cpu.h
index de121d950f..58a0d3870b 100644
--- a/target/hexagon/cpu.h
+++ b/target/hexagon/cpu.h
@@ -23,7 +23,6 @@ typedef struct CPUHexagonState CPUHexagonState;
#include "fpu/softfloat-types.h"
-#include "qemu-common.h"
#include "exec/cpu-defs.h"
#include "hex_regs.h"
#include "mmvec/mmvec.h"