This allows a specific cpu to declare its implementation of get_dump_info, needed by dump.
Reviewed-by: Anton Johansson <[email protected]> Reviewed-by: Marc-André Lureau <[email protected]> Signed-off-by: Pierrick Bouvier <[email protected]> --- include/hw/core/sysemu-cpu-ops.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/hw/core/sysemu-cpu-ops.h b/include/hw/core/sysemu-cpu-ops.h index d125540262d..1d4a04ff361 100644 --- a/include/hw/core/sysemu-cpu-ops.h +++ b/include/hw/core/sysemu-cpu-ops.h @@ -94,6 +94,11 @@ typedef struct SysemuCPUOps { */ int (*write_elf64_qemunote)(WriteCoreDumpFunction f, CPUState *cpu, DumpState *s); + /** + * @get_dump_info: fills @info with the endianness, class and architecture. + */ + void (*get_dump_info)(const CPUState *cpu, ArchDumpInfo *info, + const 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.47.3
