xref: /openbmc/qemu/accel/tcg/meson.build (revision 05caa062)
1common_ss.add(when: 'CONFIG_TCG', if_true: files(
2  'cpu-exec-common.c',
3))
4tcg_specific_ss = ss.source_set()
5tcg_specific_ss.add(files(
6  'tcg-all.c',
7  'cpu-exec.c',
8  'tb-maint.c',
9  'tcg-runtime-gvec.c',
10  'tcg-runtime.c',
11  'translate-all.c',
12  'translator.c',
13))
14tcg_specific_ss.add(when: 'CONFIG_USER_ONLY', if_true: files('user-exec.c'))
15tcg_specific_ss.add(when: 'CONFIG_SYSTEM_ONLY', if_false: files('user-exec-stub.c'))
16if get_option('plugins')
17  tcg_specific_ss.add(files('plugin-gen.c'))
18endif
19specific_ss.add_all(when: 'CONFIG_TCG', if_true: tcg_specific_ss)
20
21specific_ss.add(when: ['CONFIG_SYSTEM_ONLY', 'CONFIG_TCG'], if_true: files(
22  'cputlb.c',
23  'watchpoint.c',
24))
25
26system_ss.add(when: ['CONFIG_TCG'], if_true: files(
27  'icount-common.c',
28  'monitor.c',
29))
30
31tcg_module_ss.add(when: ['CONFIG_SYSTEM_ONLY', 'CONFIG_TCG'], if_true: files(
32  'tcg-accel-ops.c',
33  'tcg-accel-ops-mttcg.c',
34  'tcg-accel-ops-icount.c',
35  'tcg-accel-ops-rr.c',
36))
37