2022-06-06 20:43:07 +08:00
|
|
|
gen = decodetree.process('insns.decode')
|
|
|
|
|
|
|
|
loongarch_ss = ss.source_set()
|
|
|
|
loongarch_ss.add(files(
|
|
|
|
'cpu.c',
|
|
|
|
))
|
|
|
|
loongarch_tcg_ss = ss.source_set()
|
|
|
|
loongarch_tcg_ss.add(gen)
|
|
|
|
loongarch_tcg_ss.add(files(
|
|
|
|
'fpu_helper.c',
|
|
|
|
'op_helper.c',
|
|
|
|
'translate.c',
|
2022-06-06 20:43:31 +08:00
|
|
|
'gdbstub.c',
|
2023-05-04 20:27:28 +08:00
|
|
|
'lsx_helper.c',
|
2022-06-06 20:43:07 +08:00
|
|
|
))
|
|
|
|
loongarch_tcg_ss.add(zlib)
|
|
|
|
|
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 20:43:10 +08:00
|
|
|
'machine.c',
|
2022-06-06 20:43:12 +08:00
|
|
|
'tlb_helper.c',
|
2022-06-06 20:43:14 +08:00
|
|
|
'constant_timer.c',
|
2022-06-06 20:43:15 +08:00
|
|
|
'csr_helper.c',
|
2022-06-06 20:43:16 +08:00
|
|
|
'iocsr_helper.c',
|
2022-06-06 20:43:10 +08:00
|
|
|
))
|
|
|
|
|
2022-11-30 16:22:09 -08:00
|
|
|
common_ss.add(when: 'CONFIG_LOONGARCH_DIS', if_true: [files('disas.c'), gen])
|
|
|
|
|
2022-06-06 20:43:07 +08:00
|
|
|
loongarch_ss.add_all(when: 'CONFIG_TCG', if_true: [loongarch_tcg_ss])
|
|
|
|
|
|
|
|
target_arch += {'loongarch': loongarch_ss}
|
2023-06-13 15:33:47 +02:00
|
|
|
target_softmmu_arch += {'loongarch': loongarch_system_ss}
|