Skip to content

Commit

Permalink
target/xtensa: Include missing 'qemu/atomic.h' header
Browse files Browse the repository at this point in the history
Since commit fa92bd4 ("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>
  • Loading branch information
philmd committed Aug 31, 2023
1 parent 060bfdb commit b8be052
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions hw/xtensa/pic_cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
1 change: 1 addition & 0 deletions target/xtensa/exc_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions target/xtensa/op_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b8be052

Please sign in to comment.