xref: /openbmc/qemu/accel/tcg/meson.build (revision 8be545ba5a315a9aaf7307f143a4a7926a6e605c)
1common_ss.add(when: 'CONFIG_TCG', if_true: files(
2  'cpu-exec-common.c',
3  'tcg-runtime.c',
4  'tcg-runtime-gvec.c',
5))
6if get_option('plugins')
7  common_ss.add(when: 'CONFIG_TCG', if_true: files('plugin-gen.c'))
8endif
9
10tcg_specific_ss = ss.source_set()
11tcg_specific_ss.add(files(
12  'tcg-all.c',
13  'cpu-exec.c',
14  'tb-maint.c',
15  'translate-all.c',
16  'translator.c',
17))
18tcg_specific_ss.add(when: 'CONFIG_USER_ONLY', if_true: files('user-exec.c'))
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))
24
25user_ss.add(when: ['CONFIG_TCG'], if_true: files(
26  'user-exec-stub.c',
27))
28
29system_ss.add(when: ['CONFIG_TCG'], if_true: files(
30  'icount-common.c',
31  'monitor.c',
32  'tcg-accel-ops.c',
33  'tcg-accel-ops-icount.c',
34  'tcg-accel-ops-mttcg.c',
35  'tcg-accel-ops-rr.c',
36  'watchpoint.c',
37))
38