]> xenbits.xensource.com Git - qemu-xen.git/commit
plugins: Use emit_before_op for PLUGIN_GEN_AFTER_INSN
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 14 Mar 2024 17:09:57 +0000 (07:09 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 30 Apr 2024 23:12:05 +0000 (16:12 -0700)
commita0948bb78c9bd883d965aac3853e5d61f03e224b
tree2dd3de7b82d9a8891b7e20994601d91c970cf3b5
parentc7ba94836aa0665a931250e8f03f4aabce3c31f6
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>
accel/tcg/plugin-gen.c
include/tcg/tcg-op-common.h
include/tcg/tcg-opc.h
tcg/tcg-op.c