]>
Commit | Line | Data |
---|---|---|
1 | gen = decodetree.process('insns.decode') | |
2 | ||
3 | loongarch_ss = ss.source_set() | |
4 | loongarch_ss.add(files( | |
5 | 'cpu.c', | |
6 | )) | |
7 | loongarch_tcg_ss = ss.source_set() | |
8 | loongarch_tcg_ss.add(gen) | |
9 | loongarch_tcg_ss.add(files( | |
10 | 'fpu_helper.c', | |
11 | 'op_helper.c', | |
12 | 'translate.c', | |
13 | 'gdbstub.c', | |
14 | 'vec_helper.c', | |
15 | )) | |
16 | loongarch_tcg_ss.add(zlib) | |
17 | ||
18 | loongarch_system_ss = ss.source_set() | |
19 | loongarch_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 | ||
28 | common_ss.add(when: 'CONFIG_LOONGARCH_DIS', if_true: [files('disas.c'), gen]) | |
29 | ||
30 | loongarch_ss.add_all(when: 'CONFIG_TCG', if_true: [loongarch_tcg_ss]) | |
31 | ||
32 | target_arch += {'loongarch': loongarch_ss} | |
33 | target_system_arch += {'loongarch': loongarch_system_ss} |