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