This allows a specific cpu to declare its implementation of get_dump_info, needed by dump.
Signed-off-by: Pierrick Bouvier <[email protected]> --- include/hw/core/sysemu-cpu-ops.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/hw/core/sysemu-cpu-ops.h b/include/hw/core/sysemu-cpu-ops.h index d125540262d..0b6bb42dc2c 100644 --- a/include/hw/core/sysemu-cpu-ops.h +++ b/include/hw/core/sysemu-cpu-ops.h @@ -11,6 +11,7 @@ #define SYSTEM_CPU_OPS_H #include "hw/core/cpu.h" +#include "system/dump-arch.h" /* * struct SysemuCPUOps: System operations specific to a CPU class @@ -94,6 +95,12 @@ typedef struct SysemuCPUOps { */ int (*write_elf64_qemunote)(WriteCoreDumpFunction f, CPUState *cpu, DumpState *s); + /** + * @get_dump_info: fills @info with the endianness, class and architecture. + * Returns 0 on success, or -1 if the guest memory can't be dumped. + */ + int (*get_dump_info)(const CPUState *cpu, ArchDumpInfo *info, + const struct GuestPhysBlockList *guest_phys_blocks); /** * @internal_is_big_endian: Callback to return %true if a CPU which supports * runtime configurable endianness is currently big-endian. -- 2.43.0
