mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -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
|
@ -25,7 +25,6 @@ void plugin_gen_insn_start(CPUState *cpu, const struct DisasContextBase *db);
|
|||
void plugin_gen_insn_end(void);
|
||||
|
||||
void plugin_gen_disable_mem_helpers(void);
|
||||
void plugin_gen_empty_mem_callback(TCGv_i64 addr, uint32_t info);
|
||||
|
||||
#else /* !CONFIG_PLUGIN */
|
||||
|
||||
|
@ -48,9 +47,6 @@ static inline void plugin_gen_tb_end(CPUState *cpu, size_t num_insns)
|
|||
static inline void plugin_gen_disable_mem_helpers(void)
|
||||
{ }
|
||||
|
||||
static inline void plugin_gen_empty_mem_callback(TCGv_i64 addr, uint32_t info)
|
||||
{ }
|
||||
|
||||
#endif /* CONFIG_PLUGIN */
|
||||
|
||||
#endif /* QEMU_PLUGIN_GEN_H */
|
||||
|
|
|
@ -75,6 +75,7 @@ void tcg_gen_goto_tb(unsigned idx);
|
|||
void tcg_gen_lookup_and_goto_ptr(void);
|
||||
|
||||
void tcg_gen_plugin_cb(unsigned from);
|
||||
void tcg_gen_plugin_mem_cb(TCGv_i64 addr, unsigned meminfo);
|
||||
void tcg_gen_plugin_cb_start(unsigned from, unsigned type, unsigned wr);
|
||||
void tcg_gen_plugin_cb_end(void);
|
||||
|
||||
|
|
|
@ -198,6 +198,7 @@ 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_mem_cb, 0, 1, 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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue