30ee29fd03
dirtylimit.c just uses one TARGET_PAGE_SIZE macro - change it to qemu_target_page_size() so we can move thefile into the target independent source set. Then we only have to compile this file once during the build instead of multiple times (one time for each target). Message-Id: <20230413054509.54421-1-thuth@redhat.com> Reviewed-by: Fabiano Rosas <farosas@suse.de> Signed-off-by: Thomas Huth <thuth@redhat.com>
40 lines
768 B
Meson
40 lines
768 B
Meson
specific_ss.add(when: 'CONFIG_SOFTMMU', if_true: [files(
|
|
'arch_init.c',
|
|
'ioport.c',
|
|
'memory.c',
|
|
'physmem.c',
|
|
'watchpoint.c',
|
|
)])
|
|
|
|
specific_ss.add(when: ['CONFIG_SOFTMMU', 'CONFIG_TCG'], if_true: [files(
|
|
'icount.c',
|
|
)])
|
|
|
|
softmmu_ss.add(files(
|
|
'balloon.c',
|
|
'bootdevice.c',
|
|
'cpus.c',
|
|
'cpu-throttle.c',
|
|
'cpu-timers.c',
|
|
'datadir.c',
|
|
'dirtylimit.c',
|
|
'dma-helpers.c',
|
|
'globals.c',
|
|
'memory_mapping.c',
|
|
'qdev-monitor.c',
|
|
'qtest.c',
|
|
'rtc.c',
|
|
'runstate-action.c',
|
|
'runstate-hmp-cmds.c',
|
|
'runstate.c',
|
|
'tpm-hmp-cmds.c',
|
|
'vl.c',
|
|
), sdl, libpmem, libdaxctl)
|
|
|
|
if have_tpm
|
|
softmmu_ss.add(files('tpm.c'))
|
|
endif
|
|
|
|
softmmu_ss.add(when: seccomp, if_true: files('qemu-seccomp.c'))
|
|
softmmu_ss.add(when: fdt, if_true: files('device_tree.c'))
|