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