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>
This commit is contained in:
parent
b3f05b8ce2
commit
bf4bb074b7
@ -329,6 +329,7 @@ bool plugin_gen_tb_start(CPUState *cpu, const DisasContextBase *db,
|
|||||||
tcg_gen_plugin_cb(PLUGIN_GEN_FROM_TB);
|
tcg_gen_plugin_cb(PLUGIN_GEN_FROM_TB);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tcg_ctx->plugin_db = db;
|
||||||
tcg_ctx->plugin_insn = NULL;
|
tcg_ctx->plugin_insn = NULL;
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -537,6 +537,7 @@ struct TCGContext {
|
|||||||
* space for instructions (for variable-instruction-length ISAs).
|
* space for instructions (for variable-instruction-length ISAs).
|
||||||
*/
|
*/
|
||||||
struct qemu_plugin_tb *plugin_tb;
|
struct qemu_plugin_tb *plugin_tb;
|
||||||
|
const struct DisasContextBase *plugin_db;
|
||||||
|
|
||||||
/* descriptor of the instruction being translated */
|
/* descriptor of the instruction being translated */
|
||||||
struct qemu_plugin_insn *plugin_insn;
|
struct qemu_plugin_insn *plugin_insn;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user