2022-06-06 14:43:07 +02: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 14:43:31 +02:00
|
|
|
'gdbstub.c',
|
2022-06-06 14:43:07 +02:00
|
|
|
))
|
|
|
|
loongarch_tcg_ss.add(zlib)
|
|
|
|
|
2022-06-06 14:43:10 +02:00
|
|
|
loongarch_softmmu_ss = ss.source_set()
|
|
|
|
loongarch_softmmu_ss.add(files(
|
|
|
|
'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-06-06 14:43:07 +02:00
|
|
|
loongarch_ss.add_all(when: 'CONFIG_TCG', if_true: [loongarch_tcg_ss])
|
|
|
|
|
|
|
|
target_arch += {'loongarch': loongarch_ss}
|
2022-06-06 14:43:10 +02:00
|
|
|
target_softmmu_arch += {'loongarch': loongarch_softmmu_ss}
|