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