mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00

Add the support needed for creating prstatus elf notes. This allows us to use QMP dump-guest-memory. Now ELF notes of LoongArch only supports general elf notes, LSX and LASX is not supported, since it is mainly used to dump guest memory. Signed-off-by: Bibo Mao <maobibo@loongson.cn> Reviewed-by: Song Gao <gaosong@loongson.cn> Tested-by: Song Gao <gaosong@loongson.cn> Message-Id: <20240822065245.2286214-1-maobibo@loongson.cn> Signed-off-by: Song Gao <gaosong@loongson.cn>
23 lines
484 B
Meson
23 lines
484 B
Meson
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',
|
|
'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')
|