mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-30 23:10:38 +00:00
c72bf46825
Convert cpu_write_elfXX_note() functions to CPUClass methods and pass CPUState as argument. Update target-i386 accordingly. Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com> [AF: Retain stubs as CPUClass' default method implementation; style changes] Signed-off-by: Andreas Färber <afaerber@suse.de>
27 lines
592 B
C
27 lines
592 B
C
/*
|
|
* 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 or later.
|
|
* 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;
|
|
|
|
int cpu_get_dump_info(ArchDumpInfo *info);
|
|
ssize_t cpu_get_note_size(int class, int machine, int nr_cpus);
|
|
|
|
#endif
|