[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 34/41] tcg: Fix prologue disassembly
From: |
Richard Henderson |
Subject: |
[PATCH 34/41] tcg: Fix prologue disassembly |
Date: |
Sat, 10 Jul 2021 08:31:36 -0700 |
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: b0a0794a0f16
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
tcg/tcg.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tcg/tcg.c b/tcg/tcg.c
index 4dd4084419..ed86a70b79 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -752,8 +752,6 @@ void tcg_prologue_init(TCGContext *s)
(uintptr_t)s->code_buf, prologue_size);
#endif
- tcg_region_prologue_set(s);
-
#ifdef DEBUG_DISAS
if (qemu_loglevel_mask(CPU_LOG_TB_OUT_ASM)) {
FILE *logfile = qemu_log_lock();
@@ -795,6 +793,8 @@ void tcg_prologue_init(TCGContext *s)
tcg_debug_assert(tcg_code_gen_epilogue != NULL);
}
#endif
+
+ tcg_region_prologue_set(s);
}
void tcg_func_start(TCGContext *s)
--
2.25.1
- [PATCH 23/41] target/openrisc: Use translator_use_goto_tb, (continued)
- [PATCH 23/41] target/openrisc: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 24/41] target/ppc: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 27/41] target/s390x: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 25/41] target/riscv: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 29/41] target/sh4: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 26/41] target/rx: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 31/41] target/tricore: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 33/41] target/xtensa: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 28/41] target/s390x: Remove use_exit_tb, Richard Henderson, 2021/07/10
- [PATCH 30/41] target/sparc: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 34/41] tcg: Fix prologue disassembly,
Richard Henderson <=
- [PATCH 35/41] target/i386: Use cpu_breakpoint_test in breakpoint_handler, Richard Henderson, 2021/07/10
- [PATCH 32/41] target/tricore: Use tcg_gen_lookup_and_goto_ptr, Richard Henderson, 2021/07/10
- [PATCH 36/41] accel/tcg: Move helper_lookup_tb_ptr to cpu-exec.c, Richard Henderson, 2021/07/10
- [PATCH 37/41] accel/tcg: Move tb_lookup to cpu-exec.c, Richard Henderson, 2021/07/10
- [PATCH 39/41] accel/tcg: Log tb->cflags with -d exec, Richard Henderson, 2021/07/10
- [PATCH 38/41] accel/tcg: Split out log_cpu_exec, Richard Henderson, 2021/07/10
- [PATCH 40/41] tcg: Remove TCG_TARGET_HAS_goto_ptr, Richard Henderson, 2021/07/10
- [PATCH 41/41] cpu: Add breakpoint tracepoints, Richard Henderson, 2021/07/10
- Re: [PATCH 00/41] tcg patch queue, Peter Maydell, 2021/07/10