| 1 | s390x_ss = ss.source_set() |
| 2 | s390x_common_ss = ss.source_set() |
| 3 | s390x_common_system_ss = ss.source_set() |
| 4 | s390x_system_ss = ss.source_set() |
| 5 | s390x_user_ss = ss.source_set() |
| 6 | |
| 7 | s390x_ss.add(files( |
| 8 | 'cpu.c', |
| 9 | 'cpu_features.c', |
| 10 | 'cpu_models.c', |
| 11 | 'interrupt.c', |
| 12 | 'cpu-dump.c', |
| 13 | )) |
| 14 | |
| 15 | gen_features = executable('gen-features', 'gen-features.c', native: true, |
| 16 | build_by_default: false) |
| 17 | |
| 18 | gen_features_h = custom_target('gen-features.h', |
| 19 | output: 'gen-features.h', |
| 20 | capture: true, |
| 21 | command: gen_features) |
| 22 | |
| 23 | s390x_common_ss.add(gen_features_h) |
| 24 | s390x_common_ss.add(files( |
| 25 | 'gdbstub.c', |
| 26 | )) |
| 27 | |
| 28 | s390x_system_ss.add(gen_features_h) |
| 29 | s390x_system_ss.add(files( |
| 30 | 'ioinst.c', |
| 31 | )) |
| 32 | |
| 33 | s390x_common_system_ss.add(files( |
| 34 | 'helper.c', |
| 35 | 'arch_dump.c', |
| 36 | 'diag.c', |
| 37 | 'machine.c', |
| 38 | 'mmu_helper.c', |
| 39 | 'sigp.c', |
| 40 | 'cpu-system.c', |
| 41 | 'cpu_models_system.c', |
| 42 | )) |
| 43 | |
| 44 | s390x_user_ss.add(files( |
| 45 | 'cpu_models_user.c', |
| 46 | )) |
| 47 | |
| 48 | subdir('tcg') |
| 49 | subdir('kvm') |
| 50 | |
| 51 | s390x_common_system_ss.add_all(s390x_common_ss) |
| 52 | s390x_user_ss.add_all(s390x_common_ss) |
| 53 | |
| 54 | target_arch += {'s390x': s390x_ss} |
| 55 | target_system_arch += {'s390x': s390x_system_ss} |
| 56 | target_common_system_arch += {'s390x': s390x_common_system_ss} |
| 57 | target_user_arch += {'s390x': s390x_user_ss} |