2020-08-07 10:10:23 +00:00
|
|
|
# FIXME extra_args should accept files()
|
2021-04-24 03:34:25 +00:00
|
|
|
gen = [
|
|
|
|
decodetree.process('insn16.decode', extra_args: ['--static-decode=decode_insn16', '--insnwidth=16']),
|
2021-04-24 03:34:12 +00:00
|
|
|
decodetree.process('insn32.decode', extra_args: '--static-decode=decode_insn32'),
|
2022-02-02 00:52:48 +00:00
|
|
|
decodetree.process('XVentanaCondOps.decode', extra_args: '--static-decode=decode_XVentanaCodeOps'),
|
2020-08-07 10:10:23 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
riscv_ss = ss.source_set()
|
2021-04-24 03:34:25 +00:00
|
|
|
riscv_ss.add(gen)
|
2020-08-07 10:10:23 +00:00
|
|
|
riscv_ss.add(files(
|
|
|
|
'cpu.c',
|
|
|
|
'cpu_helper.c',
|
|
|
|
'csr.c',
|
|
|
|
'fpu_helper.c',
|
|
|
|
'gdbstub.c',
|
|
|
|
'op_helper.c',
|
|
|
|
'vector_helper.c',
|
2021-05-05 16:06:13 +00:00
|
|
|
'bitmanip_helper.c',
|
2020-08-07 10:10:23 +00:00
|
|
|
'translate.c',
|
2022-04-23 02:35:02 +00:00
|
|
|
'm128_helper.c',
|
|
|
|
'crypto_helper.c'
|
2020-08-07 10:10:23 +00:00
|
|
|
))
|
2022-01-12 08:13:22 +00:00
|
|
|
riscv_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c'), if_false: files('kvm-stub.c'))
|
2020-08-07 10:10:23 +00:00
|
|
|
|
|
|
|
riscv_softmmu_ss = ss.source_set()
|
|
|
|
riscv_softmmu_ss.add(files(
|
2021-02-01 12:44:58 +00:00
|
|
|
'arch_dump.c',
|
2020-08-07 10:10:23 +00:00
|
|
|
'pmp.c',
|
2022-03-15 06:55:23 +00:00
|
|
|
'debug.c',
|
2020-10-26 11:55:26 +00:00
|
|
|
'monitor.c',
|
2022-06-20 23:15:57 +00:00
|
|
|
'machine.c',
|
2022-08-24 22:13:56 +00:00
|
|
|
'pmu.c',
|
|
|
|
'time_helper.c'
|
2020-08-07 10:10:23 +00:00
|
|
|
))
|
|
|
|
|
|
|
|
target_arch += {'riscv': riscv_ss}
|
|
|
|
target_softmmu_arch += {'riscv': riscv_softmmu_ss}
|