mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
plugins: Read mem_only directly from TB cflags
Do not pass around a boolean between multiple structures, just read it from the TranslationBlock in the TCGContext. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
36bc99bc78
commit
e501325991
5 changed files with 14 additions and 16 deletions
|
@ -18,8 +18,7 @@ struct DisasContextBase;
|
|||
|
||||
#ifdef CONFIG_PLUGIN
|
||||
|
||||
bool plugin_gen_tb_start(CPUState *cpu, const struct DisasContextBase *db,
|
||||
bool supress);
|
||||
bool plugin_gen_tb_start(CPUState *cpu, const struct DisasContextBase *db);
|
||||
void plugin_gen_tb_end(CPUState *cpu, size_t num_insns);
|
||||
void plugin_gen_insn_start(CPUState *cpu, const struct DisasContextBase *db);
|
||||
void plugin_gen_insn_end(void);
|
||||
|
@ -28,8 +27,8 @@ void plugin_gen_disable_mem_helpers(void);
|
|||
|
||||
#else /* !CONFIG_PLUGIN */
|
||||
|
||||
static inline bool
|
||||
plugin_gen_tb_start(CPUState *cpu, const struct DisasContextBase *db, bool sup)
|
||||
static inline
|
||||
bool plugin_gen_tb_start(CPUState *cpu, const struct DisasContextBase *db)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue