From 90166b71c4d75823b48a132e9394af35b9c90aaf Mon Sep 17 00:00:00 2001 From: Wen Congyang Date: Mon, 7 May 2012 12:08:22 +0800 Subject: target-i386: Add API to write cpu status to core file The core file has register's value. But it does not include all registers value. Store the cpu status into QEMU note, and the user can get more information from vmcore. If you change QEMUCPUState, please count up QEMUCPUSTATE_VERSION. Signed-off-by: Wen Congyang Signed-off-by: Luiz Capitulino --- cpu-all.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'cpu-all.h') diff --git a/cpu-all.h b/cpu-all.h index a71e88718a..a167bacd6d 100644 --- a/cpu-all.h +++ b/cpu-all.h @@ -547,6 +547,10 @@ int cpu_write_elf64_note(write_core_dump_function f, CPUArchState *env, int cpuid, void *opaque); int cpu_write_elf32_note(write_core_dump_function f, CPUArchState *env, int cpuid, void *opaque); +int cpu_write_elf64_qemunote(write_core_dump_function f, CPUArchState *env, + void *opaque); +int cpu_write_elf32_qemunote(write_core_dump_function f, CPUArchState *env, + void *opaque); #else static inline int cpu_write_elf64_note(write_core_dump_function f, CPUArchState *env, int cpuid, @@ -561,6 +565,20 @@ static inline int cpu_write_elf32_note(write_core_dump_function f, { return -1; } + +static inline int cpu_write_elf64_qemunote(write_core_dump_function f, + CPUArchState *env, + void *opaque) +{ + return -1; +} + +static inline int cpu_write_elf32_qemunote(write_core_dump_function f, + CPUArchState *env, + void *opaque) +{ + return -1; +} #endif #endif /* CPU_ALL_H */ -- cgit v1.2.3