mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
tcg: pass down TranslationBlock to tcg_code_gen
My later debugging patches need access to the origin PC which is held in the TranslationBlock structure. Pass down the whole structure as it also holds the information about the code start point. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <rth@twiddle.net> Message-Id: <1458052224-9316-3-git-send-email-alex.bennee@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
f348b6d1a5
commit
5bd2ec3d7b
3 changed files with 5 additions and 5 deletions
|
@ -2328,7 +2328,7 @@ void tcg_dump_op_count(FILE *f, fprintf_function cpu_fprintf)
|
|||
#endif
|
||||
|
||||
|
||||
int tcg_gen_code(TCGContext *s, tcg_insn_unit *gen_code_buf)
|
||||
int tcg_gen_code(TCGContext *s, TranslationBlock *tb)
|
||||
{
|
||||
int i, oi, oi_next, num_insns;
|
||||
|
||||
|
@ -2387,8 +2387,8 @@ int tcg_gen_code(TCGContext *s, tcg_insn_unit *gen_code_buf)
|
|||
|
||||
tcg_reg_alloc_start(s);
|
||||
|
||||
s->code_buf = gen_code_buf;
|
||||
s->code_ptr = gen_code_buf;
|
||||
s->code_buf = tb->tc_ptr;
|
||||
s->code_ptr = tb->tc_ptr;
|
||||
|
||||
tcg_out_tb_init(s);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue