target/xtensa: Include missing 'qemu/atomic.h' header
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 28 Aug 2023 21:41:49 +0000 (23:41 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 31 Aug 2023 17:47:43 +0000 (19:47 +0200)
Since commit fa92bd4af7 ("target/xtensa: fix access to
the INTERRUPT SR") these files use QEMU atomic API.
Explicit the header inclusion instead of relying on
implicit and indirect inclusion.

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

hw/xtensa/pic_cpu.c
target/xtensa/exc_helper.c
target/xtensa/op_helper.c

index 6c9447565db04bd1da2e428931262a284e4d3817..8cef88c61bc7e690c8667f511d4a2b3a8054979f 100644 (file)
@@ -30,6 +30,7 @@
 #include "hw/irq.h"
 #include "qemu/log.h"
 #include "qemu/timer.h"
+#include "qemu/atomic.h"
 
 void check_interrupts(CPUXtensaState *env)
 {
index 43f6a862de2c66e07f6e97d853856196ea00f487..91354884f7ec8456bac49bf5979fb501cfca48ed 100644 (file)
@@ -31,6 +31,7 @@
 #include "cpu.h"
 #include "exec/helper-proto.h"
 #include "qemu/host-utils.h"
+#include "qemu/atomic.h"
 #include "exec/exec-all.h"
 
 void HELPER(exception)(CPUXtensaState *env, uint32_t excp)
index 03e2c1889a796469aa5ae06bd0242f103e1aeb0e..7bb8cd6726f66544c4d17e9d9d9f930658f1c877 100644 (file)
@@ -30,6 +30,7 @@
 #include "exec/helper-proto.h"
 #include "qemu/host-utils.h"
 #include "exec/exec-all.h"
+#include "qemu/atomic.h"
 #include "qemu/timer.h"
 
 #ifndef CONFIG_USER_ONLY