diff options
author | Wen Congyang <wency@cn.fujitsu.com> | 2012-05-07 12:08:56 +0800 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2012-06-04 13:49:34 -0300 |
commit | 25ae9c1d8bbfeb6c00eccb4297a5937d8375a44a (patch) | |
tree | d15cafeed4dfa79588681b0a48b7837353f0232e /dump.h | |
parent | 90166b71c4d75823b48a132e9394af35b9c90aaf (diff) | |
download | qemu-25ae9c1d8bbfeb6c00eccb4297a5937d8375a44a.zip qemu-25ae9c1d8bbfeb6c00eccb4297a5937d8375a44a.tar.gz qemu-25ae9c1d8bbfeb6c00eccb4297a5937d8375a44a.tar.bz2 |
target-i386: add API to get dump info
Dump info contains: endian, class and architecture. The next
patch will use these information to create vmcore. Note: on
x86 box, the class is ELFCLASS64 if the memory is larger than 4G.
Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'dump.h')
-rw-r--r-- | dump.h | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -0,0 +1,23 @@ +/* + * QEMU dump + * + * Copyright Fujitsu, Corp. 2011, 2012 + * + * Authors: + * Wen Congyang <wency@cn.fujitsu.com> + * + * This work is licensed under the terms of the GNU GPL, version 2. See + * the COPYING file in the top-level directory. + * + */ + +#ifndef DUMP_H +#define DUMP_H + +typedef struct ArchDumpInfo { + int d_machine; /* Architecture */ + int d_endian; /* ELFDATA2LSB or ELFDATA2MSB */ + int d_class; /* ELFCLASS32 or ELFCLASS64 */ +} ArchDumpInfo; + +#endif |