xref: /openbmc/qemu/target/loongarch/meson.build (revision f49986ae)
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  'vec_helper.c',
15))
16loongarch_tcg_ss.add(zlib)
17
18loongarch_system_ss = ss.source_set()
19loongarch_system_ss.add(files(
20  'loongarch-qmp-cmds.c',
21  'machine.c',
22  'tlb_helper.c',
23  'constant_timer.c',
24  'csr_helper.c',
25  'iocsr_helper.c',
26))
27
28common_ss.add(when: 'CONFIG_LOONGARCH_DIS', if_true: [files('disas.c'), gen])
29
30loongarch_ss.add_all(when: 'CONFIG_TCG', if_true: [loongarch_tcg_ss])
31
32target_arch += {'loongarch': loongarch_ss}
33target_system_arch += {'loongarch': loongarch_system_ss}
34