xref: /openbmc/qemu/target/loongarch/meson.build (revision 2a196de1)
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  'loongarch-qmp-cmds.c',
20  'machine.c',
21  'tlb_helper.c',
22  'constant_timer.c',
23  'csr_helper.c',
24  'iocsr_helper.c',
25))
26
27common_ss.add(when: 'CONFIG_LOONGARCH_DIS', if_true: [files('disas.c'), gen])
28
29loongarch_ss.add_all(when: 'CONFIG_TCG', if_true: [loongarch_tcg_ss])
30
31target_arch += {'loongarch': loongarch_ss}
32target_softmmu_arch += {'loongarch': loongarch_softmmu_ss}
33