xref: /openbmc/qemu/target/riscv/meson.build (revision cdd684b8)
1# FIXME extra_args should accept files()
2gen = [
3  decodetree.process('insn16.decode', extra_args: ['--static-decode=decode_insn16', '--insnwidth=16']),
4  decodetree.process('insn32.decode', extra_args: '--static-decode=decode_insn32'),
5  decodetree.process('xthead.decode', extra_args: '--static-decode=decode_xthead'),
6  decodetree.process('XVentanaCondOps.decode', extra_args: '--static-decode=decode_XVentanaCodeOps'),
7]
8
9riscv_ss = ss.source_set()
10riscv_ss.add(gen)
11riscv_ss.add(files(
12  'cpu.c',
13  'cpu_helper.c',
14  'csr.c',
15  'fpu_helper.c',
16  'gdbstub.c',
17  'op_helper.c',
18  'vector_helper.c',
19  'bitmanip_helper.c',
20  'translate.c',
21  'm128_helper.c',
22  'crypto_helper.c',
23  'zce_helper.c'
24))
25riscv_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c'), if_false: files('kvm-stub.c'))
26
27riscv_softmmu_ss = ss.source_set()
28riscv_softmmu_ss.add(files(
29  'arch_dump.c',
30  'pmp.c',
31  'debug.c',
32  'monitor.c',
33  'machine.c',
34  'pmu.c',
35  'time_helper.c',
36  'riscv-qmp-cmds.c',
37))
38
39target_arch += {'riscv': riscv_ss}
40target_softmmu_arch += {'riscv': riscv_softmmu_ss}
41