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