381b43f855
Since commit a0e61807a3
("qapi: Remove QMP events and commands from
user-mode builds") we don't generate the "qapi-commands-machine.h"
header in a user-emulation-only build.
Extract the QMP functions from cpu.c (which is always compiled)
to the new 'loongarch-qmp-cmds.c' unit (which is only compiled
when system emulation is selected).
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230223155540.30370-4-philmd@linaro.org>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
33 lines
744 B
Meson
33 lines
744 B
Meson
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',
|
|
))
|
|
loongarch_tcg_ss.add(zlib)
|
|
|
|
loongarch_softmmu_ss = ss.source_set()
|
|
loongarch_softmmu_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_softmmu_ss}
|