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