From da2b91409ffe33f0a59acff1843ce1758325f2ec Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Mon, 11 Jan 2016 20:56:22 +0100 Subject: target-arm: support QMP dump-guest-memory Add the support needed for creating prstatus elf notes. This allows us to use QMP dump-guest-memory. Signed-off-by: Andrew Jones Message-id: 1452542185-10914-6-git-send-email-drjones@redhat.com Reviewed-by: Peter Maydell [PMM: moved setting of cpu::write_elf64_note inside !CONFIG_USER_ONLY ifdef to avoid compile failure for linux-user build] Signed-off-by: Peter Maydell --- target-arm/cpu.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'target-arm/cpu.c') diff --git a/target-arm/cpu.c b/target-arm/cpu.c index 775e0a46bd..450ef78a3d 100644 --- a/target-arm/cpu.c +++ b/target-arm/cpu.c @@ -1421,6 +1421,8 @@ static void arm_cpu_class_init(ObjectClass *oc, void *data) cc->get_phys_page_debug = arm_cpu_get_phys_page_debug; cc->vmsd = &vmstate_arm_cpu; cc->virtio_is_big_endian = arm_cpu_is_big_endian; + cc->write_elf64_note = arm_cpu_write_elf64_note; + cc->write_elf32_note = arm_cpu_write_elf32_note; #endif cc->gdb_num_core_regs = 26; cc->gdb_core_xml_file = "arm-core.xml"; -- cgit v1.2.3