diff options
author | Mike Nawrocki <michael.nawrocki@gtri.gatech.edu> | 2017-02-28 08:32:17 -0500 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2017-03-01 11:53:58 +1100 |
commit | 356bb70ed1a8a741413d55e3dbc5ccd02c53d794 (patch) | |
tree | 3ef9551d918f35cdb0f09d8f04fbf68c728b635a /target/ppc/cpu.h | |
parent | 8e4fba203e56b8676d1092c9415cb72521efa584 (diff) | |
download | qemu-356bb70ed1a8a741413d55e3dbc5ccd02c53d794.zip qemu-356bb70ed1a8a741413d55e3dbc5ccd02c53d794.tar.gz qemu-356bb70ed1a8a741413d55e3dbc5ccd02c53d794.tar.bz2 |
Add PowerPC 32-bit guest memory dump support
This patch extends support for the `dump-guest-memory` command to the
32-bit PowerPC architecture. It relies on the assumption that a 64-bit
guest will not dump a 32-bit core file (and vice versa).
[dwg: I suspect this patch won't cover all cases, in particular a
32-bit machine type on a 64-bit qemu build. However, it does strictly
more than what we had before, so might as well apply as a starting
point]
Signed-off-by: Mike Nawrocki <michael.nawrocki@gtri.gatech.edu>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'target/ppc/cpu.h')
-rw-r--r-- | target/ppc/cpu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/ppc/cpu.h b/target/ppc/cpu.h index 420e6d6..d33c17e 100644 --- a/target/ppc/cpu.h +++ b/target/ppc/cpu.h @@ -1241,6 +1241,8 @@ int ppc_cpu_gdb_write_register(CPUState *cpu, uint8_t *buf, int reg); int ppc_cpu_gdb_write_register_apple(CPUState *cpu, uint8_t *buf, int reg); int ppc64_cpu_write_elf64_note(WriteCoreDumpFunction f, CPUState *cs, int cpuid, void *opaque); +int ppc32_cpu_write_elf32_note(WriteCoreDumpFunction f, CPUState *cs, + int cpuid, void *opaque); #ifndef CONFIG_USER_ONLY void ppc_cpu_do_system_reset(CPUState *cs); extern const struct VMStateDescription vmstate_ppc_cpu; |