[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 09/11] target/xtensa: Include missing 'qemu/atomic.h' header
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v2 09/11] target/xtensa: Include missing 'qemu/atomic.h' header |
Date: |
Tue, 29 Aug 2023 00:13:12 +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>
---
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
- Re: [PATCH v2 01/11] target/ppc/pmu: Include missing 'qemu/timer.h' header, (continued)
- [PATCH v2 02/11] target/riscv/pmu: Restrict 'qemu/log.h' include to source, Philippe Mathieu-Daudé, 2023/08/28
- [PATCH v2 03/11] target/translate: Include missing 'exec/cpu_ldst.h' header, Philippe Mathieu-Daudé, 2023/08/28
- [PATCH v2 04/11] target/translate: Remove unnecessary 'exec/cpu_ldst.h' header, Philippe Mathieu-Daudé, 2023/08/28
- [PATCH v2 05/11] target/translate: Restrict 'exec/cpu_ldst.h' to user emulation, Philippe Mathieu-Daudé, 2023/08/28
- [PATCH v2 06/11] target/helpers: Remove unnecessary 'exec/cpu_ldst.h' header, Philippe Mathieu-Daudé, 2023/08/28
- [PATCH v2 07/11] target/helper: Remove unnecessary 'qemu/main-loop.h' header, Philippe Mathieu-Daudé, 2023/08/28
- [PATCH v2 08/11] target/mips: Remove unused headers in lcsr_helper.c, Philippe Mathieu-Daudé, 2023/08/28
- [PATCH v2 09/11] target/xtensa: Include missing 'qemu/atomic.h' header,
Philippe Mathieu-Daudé <=
- [PATCH v2 10/11] qemu/processor: Remove unused 'qemu/atomic.h' header, Philippe Mathieu-Daudé, 2023/08/28
- [PATCH v2 11/11] exec/translation-block: Clean up includes, Philippe Mathieu-Daudé, 2023/08/28