diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2024-04-02 19:59:49 -1000 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2024-05-15 08:55:10 +0200 |
commit | bf4bb074b72a7dc6c9ee5379a1d6b693dcd0a5a6 (patch) | |
tree | 31a76a4cf51babb3345223da8a7a5d67cfaa27e2 | |
parent | b3f05b8ce24a2dae2e37bd6e7910f19652848656 (diff) | |
download | qemu-bf4bb074b72a7dc6c9ee5379a1d6b693dcd0a5a6.zip qemu-bf4bb074b72a7dc6c9ee5379a1d6b693dcd0a5a6.tar.gz qemu-bf4bb074b72a7dc6c9ee5379a1d6b693dcd0a5a6.tar.bz2 |
accel/tcg: Record DisasContextBase in tcg_ctx for plugins
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
-rw-r--r-- | accel/tcg/plugin-gen.c | 1 | ||||
-rw-r--r-- | include/tcg/tcg.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/accel/tcg/plugin-gen.c b/accel/tcg/plugin-gen.c index 49f5d1c..842da97 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; diff --git a/include/tcg/tcg.h b/include/tcg/tcg.h index 135e36d..2a1c080 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; |