]>
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', | |
98f40dd2 | 19 | 'vector_internals.c', |
831ec7f3 | 20 | 'bitmanip_helper.c', |
abff1abf | 21 | 'translate.c', |
68d19b58 | 22 | 'm128_helper.c', |
ce3af0bb | 23 | 'crypto_helper.c', |
e13c7d3b LH |
24 | 'zce_helper.c', |
25 | 'vcrypto_helper.c' | |
abff1abf | 26 | )) |
ad40be27 | 27 | riscv_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c'), if_false: files('kvm-stub.c')) |
abff1abf | 28 | |
de6cd759 PMD |
29 | riscv_system_ss = ss.source_set() |
30 | riscv_system_ss.add(files( | |
43a96588 | 31 | 'arch_dump.c', |
abff1abf | 32 | 'pmp.c', |
95799e36 | 33 | 'debug.c', |
f7697f0e | 34 | 'monitor.c', |
3780e337 | 35 | 'machine.c', |
43888c2f | 36 | 'pmu.c', |
c0177f91 DHB |
37 | 'time_helper.c', |
38 | 'riscv-qmp-cmds.c', | |
abff1abf PB |
39 | )) |
40 | ||
41 | target_arch += {'riscv': riscv_ss} | |
01c85e60 | 42 | target_system_arch += {'riscv': riscv_system_ss} |