]> git.proxmox.com Git - mirror_qemu.git/blame - target/loongarch/meson.build
meson: Replace CONFIG_SOFTMMU -> CONFIG_SYSTEM_ONLY
[mirror_qemu.git] / target / loongarch / meson.build
CommitLineData
14f2b0b7
SG
1gen = decodetree.process('insns.decode')
2
3loongarch_ss = ss.source_set()
4loongarch_ss.add(files(
5 'cpu.c',
14f2b0b7
SG
6))
7loongarch_tcg_ss = ss.source_set()
8loongarch_tcg_ss.add(gen)
9loongarch_tcg_ss.add(files(
10 'fpu_helper.c',
11 'op_helper.c',
12 'translate.c',
ca61e750 13 'gdbstub.c',
a0c9400a 14 'lsx_helper.c',
14f2b0b7
SG
15))
16loongarch_tcg_ss.add(zlib)
17
67ebd42a
XY
18loongarch_softmmu_ss = ss.source_set()
19loongarch_softmmu_ss.add(files(
381b43f8 20 'loongarch-qmp-cmds.c',
67ebd42a 21 'machine.c',
7e1c521e 22 'tlb_helper.c',
dd615fa4 23 'constant_timer.c',
5b1dedfe 24 'csr_helper.c',
f84a2aac 25 'iocsr_helper.c',
67ebd42a
XY
26))
27
2e0d9151
RH
28common_ss.add(when: 'CONFIG_LOONGARCH_DIS', if_true: [files('disas.c'), gen])
29
14f2b0b7
SG
30loongarch_ss.add_all(when: 'CONFIG_TCG', if_true: [loongarch_tcg_ss])
31
32target_arch += {'loongarch': loongarch_ss}
67ebd42a 33target_softmmu_arch += {'loongarch': loongarch_softmmu_ss}