[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 08/32] accel/tcg: Record DisasContextBase in tcg_ctx for plugins
From: |
Richard Henderson |
Subject: |
[PATCH 08/32] accel/tcg: Record DisasContextBase in tcg_ctx for plugins |
Date: |
Fri, 5 Apr 2024 00:24:35 -1000 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
include/tcg/tcg.h | 1 +
accel/tcg/plugin-gen.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/include/tcg/tcg.h b/include/tcg/tcg.h
index 135e36d729..2a1c080bab 100644
--- a/include/tcg/tcg.h
+++ b/include/tcg/tcg.h
@@ -537,6 +537,7 @@ struct TCGContext {
* space for instructions (for variable-instruction-length ISAs).
*/
struct qemu_plugin_tb *plugin_tb;
+ const struct DisasContextBase *plugin_db;
/* descriptor of the instruction being translated */
struct qemu_plugin_insn *plugin_insn;
diff --git a/accel/tcg/plugin-gen.c b/accel/tcg/plugin-gen.c
index 3db74ae9bf..94bbad6dc7 100644
--- a/accel/tcg/plugin-gen.c
+++ b/accel/tcg/plugin-gen.c
@@ -329,6 +329,7 @@ bool plugin_gen_tb_start(CPUState *cpu, const
DisasContextBase *db,
tcg_gen_plugin_cb(PLUGIN_GEN_FROM_TB);
}
+ tcg_ctx->plugin_db = db;
tcg_ctx->plugin_insn = NULL;
return ret;
--
2.34.1
- [PATCH 00/32] accel/tcg: Improve disassembly for target and plugin, Richard Henderson, 2024/04/05
- [PATCH 02/32] accel/tcg: Hide in_same_page outside of a target-specific context, Richard Henderson, 2024/04/05
- [PATCH 04/32] accel/tcg: Reorg translator_ld*, Richard Henderson, 2024/04/05
- [PATCH 05/32] accel/tcg: Cap the translation block when we encounter mmio, Richard Henderson, 2024/04/05
- [PATCH 07/32] accel/tcg: Record when translator_fake_ldb is used, Richard Henderson, 2024/04/05
- [PATCH 09/32] plugins: Copy memory in qemu_plugin_insn_data, Richard Henderson, 2024/04/05
- [PATCH 10/32] accel/tcg: Implement translator_st, Richard Henderson, 2024/04/05
- [PATCH 08/32] accel/tcg: Record DisasContextBase in tcg_ctx for plugins,
Richard Henderson <=
- [PATCH 11/32] plugins: Use translator_st for qemu_plugin_insn_data, Richard Henderson, 2024/04/05
- [PATCH 15/32] plugins: Merge alloc_tcg_plugin_context into plugin_gen_tb_start, Richard Henderson, 2024/04/05
- [PATCH 03/32] accel/tcg: Pass DisasContextBase to translator_fake_ldb, Richard Henderson, 2024/04/05
- [PATCH 01/32] accel/tcg: Use vaddr in translator_ld*, Richard Henderson, 2024/04/05
- [PATCH 06/32] accel/tcg: Record mmio bytes during translation, Richard Henderson, 2024/04/05
- [PATCH 12/32] plugins: Read mem_only directly from TB cflags, Richard Henderson, 2024/04/05
- [PATCH 13/32] plugins: Use DisasContextBase for qemu_plugin_insn_haddr, Richard Henderson, 2024/04/05
- [PATCH 14/32] plugins: Use DisasContextBase for qemu_plugin_tb_vaddr, Richard Henderson, 2024/04/05