]>
Commit | Line | Data |
---|---|---|
14f2b0b7 SG |
1 | gen = decodetree.process('insns.decode') |
2 | ||
3 | loongarch_ss = ss.source_set() | |
4 | loongarch_ss.add(files( | |
5 | 'cpu.c', | |
6 | 'disas.c', | |
7 | )) | |
8 | loongarch_tcg_ss = ss.source_set() | |
9 | loongarch_tcg_ss.add(gen) | |
10 | loongarch_tcg_ss.add(files( | |
11 | 'fpu_helper.c', | |
12 | 'op_helper.c', | |
13 | 'translate.c', | |
14 | )) | |
15 | loongarch_tcg_ss.add(zlib) | |
16 | ||
67ebd42a XY |
17 | loongarch_softmmu_ss = ss.source_set() |
18 | loongarch_softmmu_ss.add(files( | |
19 | 'machine.c', | |
20 | )) | |
21 | ||
14f2b0b7 SG |
22 | loongarch_ss.add_all(when: 'CONFIG_TCG', if_true: [loongarch_tcg_ss]) |
23 | ||
24 | target_arch += {'loongarch': loongarch_ss} | |
67ebd42a | 25 | target_softmmu_arch += {'loongarch': loongarch_softmmu_ss} |