target/loongarch: Support QMP dump-guest-memory
authorBibo Mao <maobibo@loongson.cn>
Thu, 22 Aug 2024 06:52:45 +0000 (14:52 +0800)
committerSong Gao <gaosong@loongson.cn>
Thu, 12 Sep 2024 12:51:18 +0000 (20:51 +0800)
commit32c22cc47cf9b99d53aa698c612a215609fdb6c7
tree6b451bcbac52f902980afe77ff50ec5281619979
parenta724f5a84ef027cd481a18eda67ea2de58282c3e
target/loongarch: Support QMP dump-guest-memory

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>
target/loongarch/arch_dump.c [new file with mode: 0644]
target/loongarch/cpu.c
target/loongarch/internals.h
target/loongarch/meson.build