]>
Commit | Line | Data |
---|---|---|
abff1abf | 1 | # FIXME extra_args should accept files() |
6baba30a AF |
2 | gen = [ |
3 | decodetree.process('insn16.decode', extra_args: ['--static-decode=decode_insn16', '--insnwidth=16']), | |
daf866b6 | 4 | decodetree.process('insn32.decode', extra_args: '--static-decode=decode_insn32'), |
49a7f3aa | 5 | decodetree.process('xthead.decode', extra_args: '--static-decode=decode_xthead'), |
0d429bd2 | 6 | decodetree.process('XVentanaCondOps.decode', extra_args: '--static-decode=decode_XVentanaCodeOps'), |
abff1abf PB |
7 | ] |
8 | ||
9 | riscv_ss = ss.source_set() | |
6baba30a | 10 | riscv_ss.add(gen) |
abff1abf PB |
11 | riscv_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', | |
831ec7f3 | 19 | 'bitmanip_helper.c', |
abff1abf | 20 | 'translate.c', |
68d19b58 | 21 | 'm128_helper.c', |
ce3af0bb WL |
22 | 'crypto_helper.c', |
23 | 'zce_helper.c' | |
abff1abf | 24 | )) |
ad40be27 | 25 | riscv_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c'), if_false: files('kvm-stub.c')) |
abff1abf PB |
26 | |
27 | riscv_softmmu_ss = ss.source_set() | |
28 | riscv_softmmu_ss.add(files( | |
43a96588 | 29 | 'arch_dump.c', |
abff1abf | 30 | 'pmp.c', |
95799e36 | 31 | 'debug.c', |
f7697f0e | 32 | 'monitor.c', |
3780e337 | 33 | 'machine.c', |
43888c2f AP |
34 | 'pmu.c', |
35 | 'time_helper.c' | |
abff1abf PB |
36 | )) |
37 | ||
38 | target_arch += {'riscv': riscv_ss} | |
39 | target_softmmu_arch += {'riscv': riscv_softmmu_ss} |