]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target/hexagon/cpu.h: don't include qemu-common.h
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 29 Nov 2021 20:05:08 +0000 (20:05 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 15 Dec 2021 10:35:26 +0000 (10:35 +0000)
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

linux-user/hexagon/cpu_loop.c
target/hexagon/cpu.h

index 6b24cbaba931f82489d38b49cf51a31ecf9df303..e47f8348d56b451aff507a53c6f38cc84513f4f4 100644 (file)
@@ -19,6 +19,7 @@
  */
 
 #include "qemu/osdep.h"
+#include "qemu-common.h"
 #include "qemu.h"
 #include "user-internals.h"
 #include "cpu_loop-common.h"
index de121d950f23bef3331d2f9af9d6fe67d394d51a..58a0d3870bb21ecbf82c97e2c02c49bf3fb82d05 100644 (file)
@@ -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"