accel/tcg: Move tcg_cflags_has/set() to 'exec/translation-block.h'

The TranslationBlock flags are defined in 'exec/translation-block.h'.
tcg_cflags_has/set() use them, it is more logical to declare them in
the same place. Move them there too.

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: <20241212144430.66224-2-philmd@linaro.org>
This commit is contained in:
Philippe Mathieu-Daudé 2024-12-12 15:38:34 +01:00
parent 1760c5cce8
commit 8865049bab
23 changed files with 24 additions and 3 deletions

View file

@ -188,9 +188,6 @@ void list_cpus(void);
#ifdef CONFIG_TCG
#include "qemu/atomic.h"
bool tcg_cflags_has(CPUState *cpu, uint32_t flags);
void tcg_cflags_set(CPUState *cpu, uint32_t flags);
/**
* cpu_unwind_state_data:
* @cpu: the cpu context

View file

@ -154,4 +154,7 @@ static inline uint32_t tb_cflags(const TranslationBlock *tb)
return qatomic_read(&tb->cflags);
}
bool tcg_cflags_has(CPUState *cpu, uint32_t flags);
void tcg_cflags_set(CPUState *cpu, uint32_t flags);
#endif /* EXEC_TRANSLATION_BLOCK_H */