refactoring of cpus.c continues with cpu timer state extraction. cpu-timers: responsible for the softmmu cpu timers state, including cpu clocks and ticks. icount: counts the TCG instructions executed. As such it is specific to the TCG accelerator. Therefore, it is built only under CONFIG_TCG. One complication is due to qtest, which uses an icount field to warp time as part of qtest (qtest_clock_warp). In order to solve this problem, provide a separate counter for qtest. This requires fixing assumptions scattered in the code that qtest_enabled() implies icount_enabled(), checking each specific case. Signed-off-by: Claudio Fontana <cfontana@suse.de> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> [remove redundant initialization with qemu_spice_init] Reviewed-by: Alex Bennée <alex.bennee@linaro.org> [fix lingering calls to icount_get] Signed-off-by: Claudio Fontana <cfontana@suse.de> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
51 lines
1.8 KiB
Meson
51 lines
1.8 KiB
Meson
stub_ss.add(files('arch_type.c'))
|
|
stub_ss.add(files('bdrv-next-monitor-owned.c'))
|
|
stub_ss.add(files('blk-commit-all.c'))
|
|
stub_ss.add(files('blockdev-close-all-bdrv-states.c'))
|
|
stub_ss.add(files('change-state-handler.c'))
|
|
stub_ss.add(files('cmos.c'))
|
|
stub_ss.add(files('cpu-get-clock.c'))
|
|
stub_ss.add(files('qemu-timer-notify-cb.c'))
|
|
stub_ss.add(files('icount.c'))
|
|
stub_ss.add(files('dump.c'))
|
|
stub_ss.add(files('error-printf.c'))
|
|
stub_ss.add(files('fdset.c'))
|
|
stub_ss.add(files('fw_cfg.c'))
|
|
stub_ss.add(files('gdbstub.c'))
|
|
stub_ss.add(files('get-vm-name.c'))
|
|
stub_ss.add(when: 'CONFIG_LINUX_IO_URING', if_true: files('io_uring.c'))
|
|
stub_ss.add(files('iothread.c'))
|
|
stub_ss.add(files('iothread-lock.c'))
|
|
stub_ss.add(files('isa-bus.c'))
|
|
stub_ss.add(files('is-daemonized.c'))
|
|
stub_ss.add(when: 'CONFIG_LINUX_AIO', if_true: files('linux-aio.c'))
|
|
stub_ss.add(files('machine-init-done.c'))
|
|
stub_ss.add(files('migr-blocker.c'))
|
|
stub_ss.add(files('monitor.c'))
|
|
stub_ss.add(files('monitor-core.c'))
|
|
stub_ss.add(files('pci-bus.c'))
|
|
stub_ss.add(files('pci-host-piix.c'))
|
|
stub_ss.add(files('qemu-timer-notify-cb.c'))
|
|
stub_ss.add(files('qmp_memory_device.c'))
|
|
stub_ss.add(files('qtest.c'))
|
|
stub_ss.add(files('ram-block.c'))
|
|
stub_ss.add(files('ramfb.c'))
|
|
stub_ss.add(files('replay.c'))
|
|
stub_ss.add(files('replay-user.c'))
|
|
stub_ss.add(files('runstate-check.c'))
|
|
stub_ss.add(files('set-fd-handler.c'))
|
|
stub_ss.add(files('sysbus.c'))
|
|
stub_ss.add(files('target-get-monitor-def.c'))
|
|
stub_ss.add(files('target-monitor-defs.c'))
|
|
stub_ss.add(files('tpm.c'))
|
|
stub_ss.add(files('trace-control.c'))
|
|
stub_ss.add(files('uuid.c'))
|
|
stub_ss.add(files('vmgenid.c'))
|
|
stub_ss.add(files('vmstate.c'))
|
|
stub_ss.add(files('vm-stop.c'))
|
|
stub_ss.add(files('win32-kbd-hook.c'))
|
|
if have_system
|
|
stub_ss.add(files('semihost.c'))
|
|
stub_ss.add(files('xen-hw-stub.c'))
|
|
endif
|