aboutsummaryrefslogtreecommitdiff
path: root/target/loongarch/meson.build
blob: b7a27df5a9f6d5bd43e921aaea9258f6a7a830d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
gen = decodetree.process('insns.decode')

loongarch_ss = ss.source_set()
loongarch_ss.add(files(
  'cpu.c',
))
loongarch_tcg_ss = ss.source_set()
loongarch_tcg_ss.add(gen)
loongarch_tcg_ss.add(files(
  'fpu_helper.c',
  'op_helper.c',
  'translate.c',
  'gdbstub.c',
  'lsx_helper.c',
))
loongarch_tcg_ss.add(zlib)

loongarch_system_ss = ss.source_set()
loongarch_system_ss.add(files(
  'loongarch-qmp-cmds.c',
  'machine.c',
  'tlb_helper.c',
  'constant_timer.c',
  'csr_helper.c',
  'iocsr_helper.c',
))

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

loongarch_ss.add_all(when: 'CONFIG_TCG', if_true: [loongarch_tcg_ss])

target_arch += {'loongarch': loongarch_ss}
target_softmmu_arch += {'loongarch': loongarch_system_ss}