mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
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:
parent
1760c5cce8
commit
8865049bab
23 changed files with 24 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue