diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2024-04-03 09:31:49 -1000 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2024-05-15 08:55:18 +0200 |
| commit | e501325991815e09297a048ffb0be81411bbe34a (patch) | |
| tree | 2ad0d48a904af15dc89beb874d02f0d2a262fe97 /include/exec/plugin-gen.h | |
| parent | 36bc99bc789fd564facea93feb2a22e4942b84d0 (diff) | |
| download | focaccia-qemu-e501325991815e09297a048ffb0be81411bbe34a.tar.gz focaccia-qemu-e501325991815e09297a048ffb0be81411bbe34a.zip | |
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>
Diffstat (limited to 'include/exec/plugin-gen.h')
| -rw-r--r-- | include/exec/plugin-gen.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/exec/plugin-gen.h b/include/exec/plugin-gen.h index f333f33198..cbb2ca2131 100644 --- a/include/exec/plugin-gen.h +++ b/include/exec/plugin-gen.h @@ -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; } |