]> git.proxmox.com Git - mirror_qemu.git/blame - include/sysemu/dump-arch.h
hw/arm: Add `\n` to hint message
[mirror_qemu.git] / include / sysemu / dump-arch.h
CommitLineData
acb0ef58
BR
1/*
2 * QEMU dump
3 *
4 * Copyright Fujitsu, Corp. 2011, 2012
5 *
6 * Authors:
7 * Wen Congyang <wency@cn.fujitsu.com>
8 *
9 * This work is licensed under the terms of the GNU GPL, version 2 or later.
10 * See the COPYING file in the top-level directory.
11 *
12 */
13
14#ifndef DUMP_ARCH_H
15#define DUMP_ARCH_H
16
17typedef struct ArchDumpInfo {
8161befd
AJ
18 int d_machine; /* Architecture */
19 int d_endian; /* ELFDATA2LSB or ELFDATA2MSB */
20 int d_class; /* ELFCLASS32 or ELFCLASS64 */
21 uint32_t page_size; /* The target's page size. If it's variable and
22 * unknown, then this should be the maximum. */
b6e05aa4 23 uint64_t phys_base; /* The target's physmem base. */
9b72224f
JF
24 void (*arch_sections_add_fn)(DumpState *s);
25 uint64_t (*arch_sections_write_hdr_fn)(DumpState *s, uint8_t *buff);
26 int (*arch_sections_write_fn)(DumpState *s, uint8_t *buff);
e72629e5 27 void (*arch_cleanup_fn)(DumpState *s);
acb0ef58
BR
28} ArchDumpInfo;
29
30struct GuestPhysBlockList; /* memory_mapping.h */
31int cpu_get_dump_info(ArchDumpInfo *info,
32 const struct GuestPhysBlockList *guest_phys_blocks);
33ssize_t cpu_get_note_size(int class, int machine, int nr_cpus);
34
35#endif