diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2025-04-30 13:57:30 -0700 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2025-05-01 07:37:13 -0700 |
| commit | e1d8fabc20adb6a766773adb4a9b5bfe93e329bb (patch) | |
| tree | 55ac56827ebe1a6b9c934225374521a7c2d0ef11 /tcg/perf.c | |
| parent | c1be135ad5b124b08715ca836b95b738c6b9d7d4 (diff) | |
| download | focaccia-qemu-e1d8fabc20adb6a766773adb4a9b5bfe93e329bb.tar.gz focaccia-qemu-e1d8fabc20adb6a766773adb4a9b5bfe93e329bb.zip | |
tcg: Define INSN_START_WORDS as constant 3
Use the same value for all targets. Rename TARGET_INSN_START_WORDS and do not depend on TARGET_INSN_START_EXTRA_WORDS. Remove TCGContext.insn_start_words. Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg/perf.c')
| -rw-r--r-- | tcg/perf.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tcg/perf.c b/tcg/perf.c index 412a987d95..4e8d2c1bee 100644 --- a/tcg/perf.c +++ b/tcg/perf.c @@ -313,7 +313,7 @@ void perf_report_code(uint64_t guest_pc, TranslationBlock *tb, const void *start) { struct debuginfo_query *q; - size_t insn, start_words; + size_t insn; uint64_t *gen_insn_data; if (!perfmap && !jitdump) { @@ -329,11 +329,10 @@ void perf_report_code(uint64_t guest_pc, TranslationBlock *tb, /* Query debuginfo for each guest instruction. */ gen_insn_data = tcg_ctx->gen_insn_data; - start_words = tcg_ctx->insn_start_words; for (insn = 0; insn < tb->icount; insn++) { /* FIXME: This replicates the restore_state_to_opc() logic. */ - q[insn].address = gen_insn_data[insn * start_words + 0]; + q[insn].address = gen_insn_data[insn * INSN_START_WORDS + 0]; if (tb_cflags(tb) & CF_PCREL) { q[insn].address |= (guest_pc & qemu_target_page_mask()); } |