Skip to content

Commit 971febb

Browse files
committed
hw/core: Move system emulation files to system_ss
hotplug.c, qdev-hotplug.c and reset.c are not used by user emulation and need not be included in hwcore_ss. Move them to system_ss, where they belong, by letting the linker pull in the stubs when needed. Signed-off-by: Paolo Bonzini <[email protected]> Reviewed-by: Richard Henderson <[email protected]> Message-ID: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 3df4c28 commit 971febb

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

hw/core/meson.build

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ hwcore_ss.add(files(
33
'bus.c',
44
'qdev-properties.c',
55
'qdev.c',
6-
'reset.c',
76
'resetcontainer.c',
87
'resettable.c',
98
'vmstate-if.c',
@@ -12,16 +11,6 @@ hwcore_ss.add(files(
1211
'clock.c',
1312
'qdev-clock.c',
1413
))
15-
if have_system
16-
hwcore_ss.add(files(
17-
'hotplug.c',
18-
'qdev-hotplug.c',
19-
))
20-
else
21-
hwcore_ss.add(files(
22-
'hotplug-stubs.c',
23-
))
24-
endif
2514

2615
common_ss.add(files('cpu-common.c'))
2716
common_ss.add(files('machine-smp.c'))
@@ -40,6 +29,7 @@ system_ss.add(files(
4029
'cpu-sysemu.c',
4130
'fw-path-provider.c',
4231
'gpio.c',
32+
'hotplug.c',
4333
'loader.c',
4434
'machine-hmp-cmds.c',
4535
'machine-qmp-cmds.c',
@@ -48,7 +38,9 @@ system_ss.add(files(
4838
'null-machine.c',
4939
'numa.c',
5040
'qdev-fw.c',
41+
'qdev-hotplug.c',
5142
'qdev-properties-system.c',
43+
'reset.c',
5244
'sysbus.c',
5345
'vm-change-state-handler.c',
5446
'clock-vmstate.c',

stubs/meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ stub_ss.add(files('fdset.c'))
1414
stub_ss.add(files('gdbstub.c'))
1515
stub_ss.add(files('get-vm-name.c'))
1616
stub_ss.add(files('graph-lock.c'))
17+
stub_ss.add(files('hotplug-stubs.c'))
1718
if linux_io_uring.found()
1819
stub_ss.add(files('io_uring.c'))
1920
endif

0 commit comments

Comments
 (0)