summary refs log tree commit diff stats
path: root/target/loongarch/meson.build
blob: 20bd3e2f0a3c68a546d37a2850e9065f0e31d72a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
gen = decodetree.process('insns.decode')

loongarch_ss = ss.source_set()
loongarch_ss.add(files(
  'cpu.c',
  'gdbstub.c',
))

loongarch_system_ss = ss.source_set()
loongarch_system_ss.add(files(
  'arch_dump.c',
  'cpu_helper.c',
  'csr.c',
  'loongarch-qmp-cmds.c',
  'machine.c',
))

common_ss.add(when: 'CONFIG_LOONGARCH_DIS', if_true: [files('disas.c'), gen])

subdir('tcg')

target_arch += {'loongarch': loongarch_ss}
target_system_arch += {'loongarch': loongarch_system_ss}
subdir('kvm')