aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2025-03-04 22:24:37 +0000
committerAlex Bennée <alex.bennee@linaro.org>2025-03-10 10:30:01 +0000
commit606ad7fe17a0baee43a29d71469fee246a09a7be (patch)
treeb576379d392bcb62f244990e5a14276c495fdbac /plugins
parent40988ed9dfca934791bd2aeb1cc2d11e3a239265 (diff)
downloadqemu-606ad7fe17a0baee43a29d71469fee246a09a7be.zip
qemu-606ad7fe17a0baee43a29d71469fee246a09a7be.tar.gz
qemu-606ad7fe17a0baee43a29d71469fee246a09a7be.tar.bz2
plugins/core: make a single build unit
Trim through the includes and remove everything not needed for the core. Only include tcg-op-common.h to remove the need to TARGET_LONG_BITS and move the build unit into the common set. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20250304222439.2035603-31-alex.bennee@linaro.org>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/core.c10
-rw-r--r--plugins/meson.build5
2 files changed, 2 insertions, 13 deletions
diff --git a/plugins/core.c b/plugins/core.c
index bb105e8..eb9281f 100644
--- a/plugins/core.c
+++ b/plugins/core.c
@@ -12,22 +12,14 @@
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "qemu/osdep.h"
-#include "qemu/error-report.h"
-#include "qemu/config-file.h"
-#include "qapi/error.h"
#include "qemu/lockable.h"
#include "qemu/option.h"
#include "qemu/plugin.h"
#include "qemu/queue.h"
#include "qemu/rcu_queue.h"
-#include "qemu/xxhash.h"
#include "qemu/rcu.h"
-#include "hw/core/cpu.h"
-
-#include "exec/exec-all.h"
#include "exec/tb-flush.h"
-#include "tcg/tcg.h"
-#include "tcg/tcg-op.h"
+#include "tcg/tcg-op-common.h"
#include "plugin.h"
struct qemu_plugin_cb {
diff --git a/plugins/meson.build b/plugins/meson.build
index d27220d..3be8245 100644
--- a/plugins/meson.build
+++ b/plugins/meson.build
@@ -61,8 +61,5 @@ endif
user_ss.add(files('user.c', 'api-user.c'))
system_ss.add(files('system.c', 'api-system.c'))
-common_ss.add(files('loader.c', 'api.c'))
+common_ss.add(files('loader.c', 'api.c', 'core.c'))
-specific_ss.add(files(
- 'core.c',
-))