diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-12-16 22:34:00 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-12-20 17:44:57 +0100 |
commit | 1760c5cce8301c4a4f007c793c872a8f16439326 (patch) | |
tree | 88fc8bebcfd6e64f2a10231eb33d941a0a68e962 | |
parent | f3adff92ce625ec1dc90d4764a8a470eee6b7eca (diff) | |
download | qemu-1760c5cce8301c4a4f007c793c872a8f16439326.zip qemu-1760c5cce8301c4a4f007c793c872a8f16439326.tar.gz qemu-1760c5cce8301c4a4f007c793c872a8f16439326.tar.bz2 |
accel/tcg: Restrict curr_cflags() declaration to 'internal-common.h'
curr_cflags() is only used within accel/tcg/,
move its declaration to accel/tcg/internal-common.h.
Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20241216214030.59393-1-philmd@linaro.org>
-rw-r--r-- | accel/tcg/internal-common.h | 3 | ||||
-rw-r--r-- | accel/tcg/watchpoint.c | 1 | ||||
-rw-r--r-- | include/exec/cpu-common.h | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/accel/tcg/internal-common.h b/accel/tcg/internal-common.h index a8fc3db..c8d7142 100644 --- a/accel/tcg/internal-common.h +++ b/accel/tcg/internal-common.h @@ -56,4 +56,7 @@ void cpu_restore_state_from_tb(CPUState *cpu, TranslationBlock *tb, bool tcg_exec_realizefn(CPUState *cpu, Error **errp); void tcg_exec_unrealizefn(CPUState *cpu); +/* current cflags for hashing/comparison */ +uint32_t curr_cflags(CPUState *cpu); + #endif diff --git a/accel/tcg/watchpoint.c b/accel/tcg/watchpoint.c index e24baea..fbaf45d 100644 --- a/accel/tcg/watchpoint.c +++ b/accel/tcg/watchpoint.c @@ -27,6 +27,7 @@ #include "system/replay.h" #include "hw/core/tcg-cpu-ops.h" #include "hw/core/cpu.h" +#include "internal-common.h" /* * Return true if this watchpoint address matches the specified diff --git a/include/exec/cpu-common.h b/include/exec/cpu-common.h index 0cf9a3d..74e947f 100644 --- a/include/exec/cpu-common.h +++ b/include/exec/cpu-common.h @@ -191,9 +191,6 @@ void list_cpus(void); bool tcg_cflags_has(CPUState *cpu, uint32_t flags); void tcg_cflags_set(CPUState *cpu, uint32_t flags); -/* current cflags for hashing/comparison */ -uint32_t curr_cflags(CPUState *cpu); - /** * cpu_unwind_state_data: * @cpu: the cpu context |