diff options
author | Andrew Jones <drjones@redhat.com> | 2016-01-11 20:56:22 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2016-01-15 14:40:25 +0000 |
commit | da2b91409ffe33f0a59acff1843ce1758325f2ec (patch) | |
tree | c925e0d912a0de055f34f6b3cce405dfb801c93d /target-arm/cpu-qom.h | |
parent | b6e05aa473b52e049654fae834453232e6b6e798 (diff) | |
download | qemu-da2b91409ffe33f0a59acff1843ce1758325f2ec.zip qemu-da2b91409ffe33f0a59acff1843ce1758325f2ec.tar.gz qemu-da2b91409ffe33f0a59acff1843ce1758325f2ec.tar.bz2 |
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 <drjones@redhat.com>
Message-id: 1452542185-10914-6-git-send-email-drjones@redhat.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
[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 <peter.maydell@linaro.org>
Diffstat (limited to 'target-arm/cpu-qom.h')
-rw-r--r-- | target-arm/cpu-qom.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target-arm/cpu-qom.h b/target-arm/cpu-qom.h index 25fb1ce..5bd9b7b 100644 --- a/target-arm/cpu-qom.h +++ b/target-arm/cpu-qom.h @@ -221,6 +221,11 @@ hwaddr arm_cpu_get_phys_page_debug(CPUState *cpu, vaddr addr); int arm_cpu_gdb_read_register(CPUState *cpu, uint8_t *buf, int reg); int arm_cpu_gdb_write_register(CPUState *cpu, uint8_t *buf, int reg); +int arm_cpu_write_elf64_note(WriteCoreDumpFunction f, CPUState *cs, + int cpuid, void *opaque); +int arm_cpu_write_elf32_note(WriteCoreDumpFunction f, CPUState *cs, + int cpuid, void *opaque); + /* Callback functions for the generic timer's timers. */ void arm_gt_ptimer_cb(void *opaque); void arm_gt_vtimer_cb(void *opaque); |