aboutsummaryrefslogtreecommitdiff
path: root/include/tcg/tcg-opc.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2024-03-14 07:09:57 -1000
committerRichard Henderson <richard.henderson@linaro.org>2024-04-30 16:12:05 -0700
commita0948bb78c9bd883d965aac3853e5d61f03e224b (patch)
tree2dd3de7b82d9a8891b7e20994601d91c970cf3b5 /include/tcg/tcg-opc.h
parentc7ba94836aa0665a931250e8f03f4aabce3c31f6 (diff)
downloadqemu-a0948bb78c9bd883d965aac3853e5d61f03e224b.zip
qemu-a0948bb78c9bd883d965aac3853e5d61f03e224b.tar.gz
qemu-a0948bb78c9bd883d965aac3853e5d61f03e224b.tar.bz2
plugins: Use emit_before_op for PLUGIN_GEN_AFTER_INSN
Introduce a new plugin_cb op and migrate one operation. By using emit_before_op, we do not need to emit opcodes early and modify them later -- we can simply emit the final set of opcodes once. Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/tcg/tcg-opc.h')
-rw-r--r--include/tcg/tcg-opc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/tcg/tcg-opc.h b/include/tcg/tcg-opc.h
index b80227f..3b7cb2b 100644
--- a/include/tcg/tcg-opc.h
+++ b/include/tcg/tcg-opc.h
@@ -197,6 +197,7 @@ DEF(exit_tb, 0, 0, 1, TCG_OPF_BB_EXIT | TCG_OPF_BB_END)
DEF(goto_tb, 0, 0, 1, TCG_OPF_BB_EXIT | TCG_OPF_BB_END)
DEF(goto_ptr, 0, 1, 0, TCG_OPF_BB_EXIT | TCG_OPF_BB_END)
+DEF(plugin_cb, 0, 0, 1, TCG_OPF_NOT_PRESENT)
DEF(plugin_cb_start, 0, 0, 3, TCG_OPF_NOT_PRESENT)
DEF(plugin_cb_end, 0, 0, 0, TCG_OPF_NOT_PRESENT)