mirror of https://github.com/xqemu/xqemu.git
target-i386: Don't overuse CPUArchState
Use CPUX86State instead in dump support code. Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
4fd6dd06e6
commit
369ff018fe
|
@ -35,7 +35,7 @@ typedef struct {
|
||||||
} x86_64_elf_prstatus;
|
} x86_64_elf_prstatus;
|
||||||
|
|
||||||
static int x86_64_write_elf64_note(WriteCoreDumpFunction f,
|
static int x86_64_write_elf64_note(WriteCoreDumpFunction f,
|
||||||
CPUArchState *env, int id,
|
CPUX86State *env, int id,
|
||||||
void *opaque)
|
void *opaque)
|
||||||
{
|
{
|
||||||
x86_64_user_regs_struct regs;
|
x86_64_user_regs_struct regs;
|
||||||
|
@ -119,7 +119,7 @@ typedef struct {
|
||||||
char pad3[4];
|
char pad3[4];
|
||||||
} x86_elf_prstatus;
|
} x86_elf_prstatus;
|
||||||
|
|
||||||
static void x86_fill_elf_prstatus(x86_elf_prstatus *prstatus, CPUArchState *env,
|
static void x86_fill_elf_prstatus(x86_elf_prstatus *prstatus, CPUX86State *env,
|
||||||
int id)
|
int id)
|
||||||
{
|
{
|
||||||
memset(prstatus, 0, sizeof(x86_elf_prstatus));
|
memset(prstatus, 0, sizeof(x86_elf_prstatus));
|
||||||
|
@ -144,7 +144,7 @@ static void x86_fill_elf_prstatus(x86_elf_prstatus *prstatus, CPUArchState *env,
|
||||||
prstatus->pid = id;
|
prstatus->pid = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int x86_write_elf64_note(WriteCoreDumpFunction f, CPUArchState *env,
|
static int x86_write_elf64_note(WriteCoreDumpFunction f, CPUX86State *env,
|
||||||
int id, void *opaque)
|
int id, void *opaque)
|
||||||
{
|
{
|
||||||
x86_elf_prstatus prstatus;
|
x86_elf_prstatus prstatus;
|
||||||
|
@ -274,7 +274,7 @@ static void copy_segment(QEMUCPUSegment *d, SegmentCache *s)
|
||||||
d->base = s->base;
|
d->base = s->base;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void qemu_get_cpustate(QEMUCPUState *s, CPUArchState *env)
|
static void qemu_get_cpustate(QEMUCPUState *s, CPUX86State *env)
|
||||||
{
|
{
|
||||||
memset(s, 0, sizeof(QEMUCPUState));
|
memset(s, 0, sizeof(QEMUCPUState));
|
||||||
|
|
||||||
|
@ -321,7 +321,7 @@ static void qemu_get_cpustate(QEMUCPUState *s, CPUArchState *env)
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int cpu_write_qemu_note(WriteCoreDumpFunction f,
|
static inline int cpu_write_qemu_note(WriteCoreDumpFunction f,
|
||||||
CPUArchState *env,
|
CPUX86State *env,
|
||||||
void *opaque,
|
void *opaque,
|
||||||
int type)
|
int type)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue