aboutsummaryrefslogtreecommitdiff
path: root/include/hw/core
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2024-04-29 16:01:18 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-05-06 11:24:14 +0200
commitfc44d592db69547ca2fc1ec9ee41e6ea81734400 (patch)
treedaf1e263c0b0bb3ae24e6baa58cd3715ce73be86 /include/hw/core
parent57d828429e5f1d849bf808387d947d7a62f0322e (diff)
downloadqemu-fc44d592db69547ca2fc1ec9ee41e6ea81734400.zip
qemu-fc44d592db69547ca2fc1ec9ee41e6ea81734400.tar.gz
qemu-fc44d592db69547ca2fc1ec9ee41e6ea81734400.tar.bz2
accel/tcg: Restrict cpu_plugin_mem_cbs_enabled() to TCG
So far cpu_plugin_mem_cbs_enabled() is only called from TCG, so reduce it to accel/tcg/. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <5f59c754-44e5-4743-a2dd-87ef8e13eadf@linaro.org>
Diffstat (limited to 'include/hw/core')
-rw-r--r--include/hw/core/cpu.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h
index 173349b..a001baf 100644
--- a/include/hw/core/cpu.h
+++ b/include/hw/core/cpu.h
@@ -1112,23 +1112,6 @@ void cpu_watchpoint_remove_all(CPUState *cpu, int mask);
#endif
/**
- * cpu_plugin_mem_cbs_enabled() - are plugin memory callbacks enabled?
- * @cs: CPUState pointer
- *
- * The memory callbacks are installed if a plugin has instrumented an
- * instruction for memory. This can be useful to know if you want to
- * force a slow path for a series of memory accesses.
- */
-static inline bool cpu_plugin_mem_cbs_enabled(const CPUState *cpu)
-{
-#ifdef CONFIG_PLUGIN
- return !!cpu->plugin_mem_cbs;
-#else
- return false;
-#endif
-}
-
-/**
* cpu_get_address_space:
* @cpu: CPU to get address space from
* @asidx: index identifying which address space to get