Skip to content

Commit 606ad7f

Browse files
committed
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 <[email protected]> Signed-off-by: Alex Bennée <[email protected]> Message-Id: <[email protected]>
1 parent 40988ed commit 606ad7f

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

plugins/core.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,14 @@
1212
* SPDX-License-Identifier: GPL-2.0-or-later
1313
*/
1414
#include "qemu/osdep.h"
15-
#include "qemu/error-report.h"
16-
#include "qemu/config-file.h"
17-
#include "qapi/error.h"
1815
#include "qemu/lockable.h"
1916
#include "qemu/option.h"
2017
#include "qemu/plugin.h"
2118
#include "qemu/queue.h"
2219
#include "qemu/rcu_queue.h"
23-
#include "qemu/xxhash.h"
2420
#include "qemu/rcu.h"
25-
#include "hw/core/cpu.h"
26-
27-
#include "exec/exec-all.h"
2821
#include "exec/tb-flush.h"
29-
#include "tcg/tcg.h"
30-
#include "tcg/tcg-op.h"
22+
#include "tcg/tcg-op-common.h"
3123
#include "plugin.h"
3224

3325
struct qemu_plugin_cb {

plugins/meson.build

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,5 @@ endif
6161
user_ss.add(files('user.c', 'api-user.c'))
6262
system_ss.add(files('system.c', 'api-system.c'))
6363

64-
common_ss.add(files('loader.c', 'api.c'))
64+
common_ss.add(files('loader.c', 'api.c', 'core.c'))
6565

66-
specific_ss.add(files(
67-
'core.c',
68-
))

0 commit comments

Comments
 (0)