xref: /openbmc/qemu/target/loongarch/meson.build (revision 93e0932b)
1gen = decodetree.process('insns.decode')
2
3loongarch_ss = ss.source_set()
4loongarch_ss.add(files(
5  'cpu.c',
6))
7loongarch_tcg_ss = ss.source_set()
8loongarch_tcg_ss.add(gen)
9loongarch_tcg_ss.add(files(
10  'fpu_helper.c',
11  'op_helper.c',
12  'translate.c',
13  'gdbstub.c',
14))
15loongarch_tcg_ss.add(zlib)
16
17loongarch_softmmu_ss = ss.source_set()
18loongarch_softmmu_ss.add(files(
19  'machine.c',
20  'tlb_helper.c',
21  'constant_timer.c',
22  'csr_helper.c',
23  'iocsr_helper.c',
24))
25
26common_ss.add(when: 'CONFIG_LOONGARCH_DIS', if_true: [files('disas.c'), gen])
27
28loongarch_ss.add_all(when: 'CONFIG_TCG', if_true: [loongarch_tcg_ss])
29
30target_arch += {'loongarch': loongarch_ss}
31target_softmmu_arch += {'loongarch': loongarch_softmmu_ss}
32