summary refs log tree commit diff stats
path: root/hw/xtensa/pic_cpu.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-08-28 23:41:49 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2023-08-31 19:47:43 +0200
commitb8be052493145ab198ae7d1622d42aedd519c440 (patch)
tree0e9bb0a559fee43e57b86c323300ec05ffbbdb82 /hw/xtensa/pic_cpu.c
parent060bfdb75e3932fdd2bd3748a7f784d0d3f283b5 (diff)
downloadfocaccia-qemu-b8be052493145ab198ae7d1622d42aedd519c440.tar.gz
focaccia-qemu-b8be052493145ab198ae7d1622d42aedd519c440.zip
target/xtensa: Include missing 'qemu/atomic.h' header
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>
Diffstat (limited to 'hw/xtensa/pic_cpu.c')
-rw-r--r--hw/xtensa/pic_cpu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/xtensa/pic_cpu.c b/hw/xtensa/pic_cpu.c
index 6c9447565d..8cef88c61b 100644
--- a/hw/xtensa/pic_cpu.c
+++ b/hw/xtensa/pic_cpu.c
@@ -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)
 {