| 1 | gen = decodetree.process('insns.decode') |
| 2 | |
| 3 | loongarch_ss = ss.source_set() |
| 4 | loongarch_ss.add(files( |
| 5 | 'cpu.c', |
| 6 | )) |
| 7 | |
| 8 | loongarch_user_ss = ss.source_set() |
| 9 | loongarch_user_ss.add(files('gdbstub.c')) |
| 10 | |
| 11 | loongarch_common_system_ss = ss.source_set() |
| 12 | loongarch_common_system_ss.add(files('gdbstub.c')) |
| 13 | loongarch_common_system_ss.add(files('machine.c')) |
| 14 | |
| 15 | loongarch_system_ss = ss.source_set() |
| 16 | loongarch_system_ss.add(files( |
| 17 | 'arch_dump.c', |
| 18 | 'cpu_helper.c', |
| 19 | 'csr.c', |
| 20 | 'loongarch-qmp-cmds.c', |
| 21 | )) |
| 22 | |
| 23 | common_ss.add(when: 'CONFIG_LOONGARCH_DIS', if_true: [files('disas.c'), gen]) |
| 24 | |
| 25 | subdir('tcg') |
| 26 | |
| 27 | target_arch += {'loongarch': loongarch_ss} |
| 28 | target_user_arch += {'loongarch': loongarch_user_ss} |
| 29 | target_system_arch += {'loongarch': loongarch_system_ss} |
| 30 | target_common_system_arch += {'loongarch': loongarch_common_system_ss} |
| 31 | subdir('kvm') |