mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
TCG: Use gen_opc_instr_start from context instead of global variable.
Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
c9c99c22d5
commit
ab1103def4
16 changed files with 47 additions and 46 deletions
|
@ -5283,10 +5283,10 @@ static inline void gen_intermediate_code_internal(TranslationBlock * tb,
|
|||
if (lj < j) {
|
||||
lj++;
|
||||
while (lj < j)
|
||||
gen_opc_instr_start[lj++] = 0;
|
||||
tcg_ctx.gen_opc_instr_start[lj++] = 0;
|
||||
tcg_ctx.gen_opc_pc[lj] = dc->pc;
|
||||
gen_opc_npc[lj] = dc->npc;
|
||||
gen_opc_instr_start[lj] = 1;
|
||||
tcg_ctx.gen_opc_instr_start[lj] = 1;
|
||||
tcg_ctx.gen_opc_icount[lj] = num_insns;
|
||||
}
|
||||
}
|
||||
|
@ -5339,7 +5339,7 @@ static inline void gen_intermediate_code_internal(TranslationBlock * tb,
|
|||
j = tcg_ctx.gen_opc_ptr - tcg_ctx.gen_opc_buf;
|
||||
lj++;
|
||||
while (lj <= j)
|
||||
gen_opc_instr_start[lj++] = 0;
|
||||
tcg_ctx.gen_opc_instr_start[lj++] = 0;
|
||||
#if 0
|
||||
log_page_dump();
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue