aboutsummaryrefslogtreecommitdiff
path: root/include/tcg/tcg.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2022-11-26 18:39:55 -0800
committerRichard Henderson <richard.henderson@linaro.org>2023-01-17 10:08:51 -1000
commitb7e4afbd9f2f9233a37e021f9e8cce472aecdd64 (patch)
tree81fb1fc5f7da478e5efcbad77c715a11bfdd5695 /include/tcg/tcg.h
parent3a50f424c9e066bee18bfa9cadcd3e21003ca6bb (diff)
downloadqemu-b7e4afbd9f2f9233a37e021f9e8cce472aecdd64.zip
qemu-b7e4afbd9f2f9233a37e021f9e8cce472aecdd64.tar.gz
qemu-b7e4afbd9f2f9233a37e021f9e8cce472aecdd64.tar.bz2
tcg: Add gen_tb to TCGContext
This can replace four other variables that are references into the TranslationBlock structure. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/tcg/tcg.h')
-rw-r--r--include/tcg/tcg.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/include/tcg/tcg.h b/include/tcg/tcg.h
index b949d75..c2d5430 100644
--- a/include/tcg/tcg.h
+++ b/include/tcg/tcg.h
@@ -552,20 +552,15 @@ struct TCGContext {
int nb_indirects;
int nb_ops;
- /* goto_tb support */
- tcg_insn_unit *code_buf;
- uint16_t *tb_jmp_reset_offset; /* tb->jmp_reset_offset */
- uintptr_t *tb_jmp_insn_offset; /* tb->jmp_target_arg if direct_jump */
- uintptr_t *tb_jmp_target_addr; /* tb->jmp_target_arg if !direct_jump */
-
TCGRegSet reserved_regs;
- uint32_t tb_cflags; /* cflags of the current TB */
intptr_t current_frame_offset;
intptr_t frame_start;
intptr_t frame_end;
TCGTemp *frame_temp;
- tcg_insn_unit *code_ptr;
+ TranslationBlock *gen_tb; /* tb for which code is being generated */
+ tcg_insn_unit *code_buf; /* pointer for start of tb */
+ tcg_insn_unit *code_ptr; /* pointer for running end of tb */
#ifdef CONFIG_PROFILER
TCGProfile prof;