2022-06-06 15:43:07 +03:00
|
|
|
gen = decodetree.process('insns.decode')
|
|
|
|
|
|
|
|
loongarch_ss = ss.source_set()
|
|
|
|
loongarch_ss.add(files(
|
|
|
|
'cpu.c',
|
2024-01-02 05:01:59 +03:00
|
|
|
'gdbstub.c',
|
2022-06-06 15:43:07 +03:00
|
|
|
))
|
|
|
|
|
2023-06-13 16:33:47 +03:00
|
|
|
loongarch_system_ss = ss.source_set()
|
|
|
|
loongarch_system_ss.add(files(
|
2024-01-25 09:14:01 +03:00
|
|
|
'cpu_helper.c',
|
2023-02-23 18:55:39 +03:00
|
|
|
'loongarch-qmp-cmds.c',
|
2022-06-06 15:43:10 +03:00
|
|
|
'machine.c',
|
|
|
|
))
|
|
|
|
|
2022-12-01 03:22:09 +03:00
|
|
|
common_ss.add(when: 'CONFIG_LOONGARCH_DIS', if_true: [files('disas.c'), gen])
|
|
|
|
|
2024-01-02 05:02:00 +03:00
|
|
|
subdir('tcg')
|
2022-06-06 15:43:07 +03:00
|
|
|
|
|
|
|
target_arch += {'loongarch': loongarch_ss}
|
2023-10-04 12:06:27 +03:00
|
|
|
target_system_arch += {'loongarch': loongarch_system_ss}
|
2024-01-05 10:58:04 +03:00
|
|
|
subdir('kvm')
|