2022-06-06 15:43:07 +03:00
|
|
|
gen = decodetree.process('insns.decode')
|
|
|
|
|
|
|
|
loongarch_ss = ss.source_set()
|
|
|
|
loongarch_ss.add(files(
|
|
|
|
'cpu.c',
|
|
|
|
'disas.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',
|
2022-06-06 15:43:07 +03:00
|
|
|
))
|
|
|
|
loongarch_tcg_ss.add(zlib)
|
|
|
|
|
2022-06-06 15:43:10 +03:00
|
|
|
loongarch_softmmu_ss = ss.source_set()
|
|
|
|
loongarch_softmmu_ss.add(files(
|
|
|
|
'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-06-06 15:43:07 +03:00
|
|
|
loongarch_ss.add_all(when: 'CONFIG_TCG', if_true: [loongarch_tcg_ss])
|
|
|
|
|
|
|
|
target_arch += {'loongarch': loongarch_ss}
|
2022-06-06 15:43:10 +03:00
|
|
|
target_softmmu_arch += {'loongarch': loongarch_softmmu_ss}
|