mirror of
https://github.com/mii443/qemu.git
synced 2025-12-04 03:28:31 +00:00
tcg: Fix prologue disassembly
In tcg_region_prologue_set, we reset TCGContext.code_gen_ptr.
So do that after we've used it to dump the prologue contents.
Fixes: b0a0794a0f
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
@@ -752,8 +752,6 @@ void tcg_prologue_init(TCGContext *s)
|
|||||||
(uintptr_t)s->code_buf, prologue_size);
|
(uintptr_t)s->code_buf, prologue_size);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
tcg_region_prologue_set(s);
|
|
||||||
|
|
||||||
#ifdef DEBUG_DISAS
|
#ifdef DEBUG_DISAS
|
||||||
if (qemu_loglevel_mask(CPU_LOG_TB_OUT_ASM)) {
|
if (qemu_loglevel_mask(CPU_LOG_TB_OUT_ASM)) {
|
||||||
FILE *logfile = qemu_log_lock();
|
FILE *logfile = qemu_log_lock();
|
||||||
@@ -795,6 +793,8 @@ void tcg_prologue_init(TCGContext *s)
|
|||||||
tcg_debug_assert(tcg_code_gen_epilogue != NULL);
|
tcg_debug_assert(tcg_code_gen_epilogue != NULL);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
tcg_region_prologue_set(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tcg_func_start(TCGContext *s)
|
void tcg_func_start(TCGContext *s)
|
||||||
|
|||||||
Reference in New Issue
Block a user