mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
plugins: Use emit_before_op for PLUGIN_GEN_FROM_MEM
Introduce a new plugin_mem_cb op to hold the address temp and meminfo computed by tcg-op-ldst.c. Because this now has its own opcode, we no longer need PLUGIN_GEN_FROM_MEM. Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
ac977170bf
commit
8a2927f290
6 changed files with 54 additions and 371 deletions
|
@ -317,6 +317,11 @@ void tcg_gen_plugin_cb(unsigned from)
|
|||
tcg_gen_op1(INDEX_op_plugin_cb, from);
|
||||
}
|
||||
|
||||
void tcg_gen_plugin_mem_cb(TCGv_i64 addr, unsigned meminfo)
|
||||
{
|
||||
tcg_gen_op2(INDEX_op_plugin_mem_cb, tcgv_i64_arg(addr), meminfo);
|
||||
}
|
||||
|
||||
void tcg_gen_plugin_cb_start(unsigned from, unsigned type, unsigned wr)
|
||||
{
|
||||
tcg_gen_op3(INDEX_op_plugin_cb_start, from, type, wr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue