[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 16/41] target/xtensa: Include missing 'qemu/atomic.h' header
From: |
Philippe Mathieu-Daudé |
Subject: |
[PULL 16/41] target/xtensa: Include missing 'qemu/atomic.h' header |
Date: |
Thu, 31 Aug 2023 14:56:18 +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 | 1 +
target/xtensa/exc_helper.c | 1 +
target/xtensa/op_helper.c | 1 +
3 files changed, 3 insertions(+)
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)
{
diff --git a/target/xtensa/exc_helper.c b/target/xtensa/exc_helper.c
index 43f6a862de..91354884f7 100644
--- a/target/xtensa/exc_helper.c
+++ b/target/xtensa/exc_helper.c
@@ -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)
diff --git a/target/xtensa/op_helper.c b/target/xtensa/op_helper.c
index 03e2c1889a..7bb8cd6726 100644
--- a/target/xtensa/op_helper.c
+++ b/target/xtensa/op_helper.c
@@ -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
--
2.41.0
- [PULL 03/41] qemu/uri: Use QueryParams type definition, (continued)
- [PULL 03/41] qemu/uri: Use QueryParams type definition, Philippe Mathieu-Daudé, 2023/08/31
- [PULL 05/41] hw/net/i82596: Include missing 'exec/address-spaces.h' header, Philippe Mathieu-Daudé, 2023/08/31
- [PULL 04/41] bulk: Do not declare function prototypes using 'extern' keyword, Philippe Mathieu-Daudé, 2023/08/31
- [PULL 06/41] hw/dma/etraxfs: Include missing 'exec/memory.h' header, Philippe Mathieu-Daudé, 2023/08/31
- [PULL 07/41] exec/address-spaces.h: Remove unuseful 'exec/memory.h' include, Philippe Mathieu-Daudé, 2023/08/31
- [PULL 09/41] target/riscv/pmu: Restrict 'qemu/log.h' include to source, Philippe Mathieu-Daudé, 2023/08/31
- [PULL 08/41] target/ppc/pmu: Include missing 'qemu/timer.h' header, Philippe Mathieu-Daudé, 2023/08/31
- [PULL 10/41] target/translate: Include missing 'exec/cpu_ldst.h' header, Philippe Mathieu-Daudé, 2023/08/31
- [PULL 12/41] target/translate: Restrict 'exec/cpu_ldst.h' to user emulation, Philippe Mathieu-Daudé, 2023/08/31
- [PULL 11/41] target/translate: Remove unnecessary 'exec/cpu_ldst.h' header, Philippe Mathieu-Daudé, 2023/08/31
- [PULL 16/41] target/xtensa: Include missing 'qemu/atomic.h' header,
Philippe Mathieu-Daudé <=
- [PULL 13/41] target/helpers: Remove unnecessary 'exec/cpu_ldst.h' header, Philippe Mathieu-Daudé, 2023/08/31
- [PULL 15/41] target/mips: Remove unused headers in lcsr_helper.c, Philippe Mathieu-Daudé, 2023/08/31
- [PULL 17/41] qemu/processor: Remove unused 'qemu/atomic.h' header, Philippe Mathieu-Daudé, 2023/08/31
- [PULL 18/41] exec/translation-block: Clean up includes, Philippe Mathieu-Daudé, 2023/08/31
- [PULL 14/41] target/helpers: Remove unnecessary 'qemu/main-loop.h' header, Philippe Mathieu-Daudé, 2023/08/31
- [PULL 23/41] hw/char/pl011: Remove duplicated PL011_INT_[RT]X definitions, Philippe Mathieu-Daudé, 2023/08/31
- [PULL 22/41] hw/char/pl011: Display register name in trace events, Philippe Mathieu-Daudé, 2023/08/31
- [PULL 20/41] hw/char: Have FEWatchFunc handlers return G_SOURCE_CONTINUE/REMOVE, Philippe Mathieu-Daudé, 2023/08/31
- [PULL 21/41] hw/char/pl011: Restrict MemoryRegionOps implementation access sizes, Philippe Mathieu-Daudé, 2023/08/31
- [PULL 19/41] chardev/char-fe: Document FEWatchFunc typedef, Philippe Mathieu-Daudé, 2023/08/31