2022-06-06 15:43:07 +03: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 15:43:31 +03:00
|
|
|
'gdbstub.c',
|
2023-05-04 15:27:28 +03:00
|
|
|
'lsx_helper.c',
|
2022-06-06 15:43:07 +03:00
|
|
|
))
|
|
|
|
loongarch_tcg_ss.add(zlib)
|
|
|
|
|
2023-06-13 16:33:47 +03:00
|
|
|
loongarch_system_ss = ss.source_set()
|
|
|
|
loongarch_system_ss.add(files(
|
2023-02-23 18:55:39 +03:00
|
|
|
'loongarch-qmp-cmds.c',
|
2022-06-06 15:43:10 +03:00
|
|
|
'machine.c',
|
2022-06-06 15:43:12 +03:00
|
|
|
'tlb_helper.c',
|
2022-06-06 15:43:14 +03:00
|
|
|
'constant_timer.c',
|
2022-06-06 15:43:15 +03:00
|
|
|
'csr_helper.c',
|
2022-06-06 15:43:16 +03:00
|
|
|
'iocsr_helper.c',
|
2022-06-06 15:43:10 +03:00
|
|
|
))
|
|
|
|
|
2022-12-01 03:22:09 +03:00
|
|
|
common_ss.add(when: 'CONFIG_LOONGARCH_DIS', if_true: [files('disas.c'), gen])
|
|
|
|
|
2022-06-06 15:43:07 +03:00
|
|
|
loongarch_ss.add_all(when: 'CONFIG_TCG', if_true: [loongarch_tcg_ss])
|
|
|
|
|
|
|
|
target_arch += {'loongarch': loongarch_ss}
|
2023-06-13 16:33:47 +03:00
|
|
|
target_softmmu_arch += {'loongarch': loongarch_system_ss}
|