]>
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', | |
14f2b0b7 SG |
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', | |
ca61e750 | 13 | 'gdbstub.c', |
1dc33f26 | 14 | 'vec_helper.c', |
14f2b0b7 SG |
15 | )) |
16 | loongarch_tcg_ss.add(zlib) | |
17 | ||
de6cd759 PMD |
18 | loongarch_system_ss = ss.source_set() |
19 | loongarch_system_ss.add(files( | |
381b43f8 | 20 | 'loongarch-qmp-cmds.c', |
67ebd42a | 21 | 'machine.c', |
7e1c521e | 22 | 'tlb_helper.c', |
dd615fa4 | 23 | 'constant_timer.c', |
5b1dedfe | 24 | 'csr_helper.c', |
f84a2aac | 25 | 'iocsr_helper.c', |
67ebd42a XY |
26 | )) |
27 | ||
2e0d9151 RH |
28 | common_ss.add(when: 'CONFIG_LOONGARCH_DIS', if_true: [files('disas.c'), gen]) |
29 | ||
14f2b0b7 SG |
30 | loongarch_ss.add_all(when: 'CONFIG_TCG', if_true: [loongarch_tcg_ss]) |
31 | ||
32 | target_arch += {'loongarch': loongarch_ss} | |
01c85e60 | 33 | target_system_arch += {'loongarch': loongarch_system_ss} |