2022-06-06 14:43:07 +02: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 14:43:31 +02:00
|
|
|
'gdbstub.c',
|
2023-09-14 04:25:49 +02:00
|
|
|
'vec_helper.c',
|
2022-06-06 14:43:07 +02: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 14:43:10 +02:00
|
|
|
'machine.c',
|
2022-06-06 14:43:12 +02:00
|
|
|
'tlb_helper.c',
|
2022-06-06 14:43:14 +02:00
|
|
|
'constant_timer.c',
|
2022-06-06 14:43:15 +02:00
|
|
|
'csr_helper.c',
|
2022-06-06 14:43:16 +02:00
|
|
|
'iocsr_helper.c',
|
2022-06-06 14:43:10 +02:00
|
|
|
))
|
|
|
|
|
2022-12-01 01:22:09 +01:00
|
|
|
common_ss.add(when: 'CONFIG_LOONGARCH_DIS', if_true: [files('disas.c'), gen])
|
|
|
|
|
2022-06-06 14:43:07 +02:00
|
|
|
loongarch_ss.add_all(when: 'CONFIG_TCG', if_true: [loongarch_tcg_ss])
|
|
|
|
|
|
|
|
target_arch += {'loongarch': loongarch_ss}
|
2023-10-04 11:06:27 +02:00
|
|
|
target_system_arch += {'loongarch': loongarch_system_ss}
|