mirror of
https://github.com/utmapp/qemu.git
synced 2026-12-01 14:01:31 -10:00
tcg: Make tb_cflags() usable from target-agnostic code
Currently tb_cflags() is defined in exec-all.h, which is not usable from target-agnostic code. Move it to translation-block.h, which is. Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Signed-off-by: Ilya Leoshkevich <[email protected]> Reviewed-by: Richard Henderson <[email protected]> Message-ID: <[email protected]> Message-Id: <[email protected]> Signed-off-by: Richard Henderson <[email protected]>
This commit is contained in:
1 parent
8a6a9ab6e5
commit
88d4b5138a
2 files changed
+6
-6
No files matched your search
@@ -459,12 +459,6 @@ int probe_access_full_mmu(CPUArchState *env, vaddr addr, int size,
|
||||
|
||||
#endif
|
||||
|
||||
/* Hide the qatomic_read to make code a little easier on the eyes */
|
||||
static inline uint32_t tb_cflags(const TranslationBlock *tb)
|
||||
{
|
||||
return qatomic_read(&tb->cflags);
|
||||
}
|
||||
|
||||
static inline tb_page_addr_t tb_page_addr0(const TranslationBlock *tb)
|
||||
{
|
||||
#ifdef CONFIG_USER_ONLY
|
||||
|
||||
@@ -145,4 +145,10 @@ struct TranslationBlock {
|
||||
/* The alignment given to TranslationBlock during allocation. */
|
||||
#define CODE_GEN_ALIGN 16
|
||||
|
||||
/* Hide the qatomic_read to make code a little easier on the eyes */
|
||||
static inline uint32_t tb_cflags(const TranslationBlock *tb)
|
||||
{
|
||||
return qatomic_read(&tb->cflags);
|
||||
}
|
||||
|
||||
#endif /* EXEC_TRANSLATION_BLOCK_H */
|
||||
Reference in new issue
Block a user