diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-03-15 17:43:16 +0000 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2023-03-22 15:06:57 +0000 |
commit | 507271d4680d1c3b6041b6c65d975824624b149a (patch) | |
tree | a095694fba0f4b89e9ce6a3aad27b2c2b829ec48 /include/qemu/plugin.h | |
parent | aa4cf6eb82954fa9d4bb7c5dfee9bad830bfa91d (diff) | |
download | qemu-507271d4680d1c3b6041b6c65d975824624b149a.zip qemu-507271d4680d1c3b6041b6c65d975824624b149a.tar.gz qemu-507271d4680d1c3b6041b6c65d975824624b149a.tar.bz2 |
include/qemu/plugin: Inline qemu_plugin_disable_mem_helpers
Now that we've broken the include loop with cpu.h,
we can bring this inline.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230310195252.210956-8-richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20230315174331.2959-18-alex.bennee@linaro.org>
Reviewed-by: Emilio Cota <cota@braap.org>
Diffstat (limited to 'include/qemu/plugin.h')
-rw-r--r-- | include/qemu/plugin.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/qemu/plugin.h b/include/qemu/plugin.h index 6bf4bce..bc0781c 100644 --- a/include/qemu/plugin.h +++ b/include/qemu/plugin.h @@ -14,6 +14,7 @@ #include "qemu/option.h" #include "qemu/plugin-event.h" #include "exec/memopidx.h" +#include "hw/core/cpu.h" /* * Option parsing/processing. @@ -204,7 +205,10 @@ void qemu_plugin_atexit_cb(void); void qemu_plugin_add_dyn_cb_arr(GArray *arr); -void qemu_plugin_disable_mem_helpers(CPUState *cpu); +static inline void qemu_plugin_disable_mem_helpers(CPUState *cpu) +{ + cpu->plugin_mem_cbs = NULL; +} /** * qemu_plugin_user_exit(): clean-up callbacks before calling exit callbacks |