diff options
author | Wen Congyang <wency@cn.fujitsu.com> | 2012-05-07 12:08:22 +0800 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2012-06-04 13:49:34 -0300 |
commit | 90166b71c4d75823b48a132e9394af35b9c90aaf (patch) | |
tree | 3e2206cfecdd53fba84c6b93ff0a40ba11c22d26 /cpu-all.h | |
parent | 9fecbed0c03ddad63c27f1622e2002fdfc2f45e4 (diff) | |
download | qemu-90166b71c4d75823b48a132e9394af35b9c90aaf.tar.gz qemu-90166b71c4d75823b48a132e9394af35b9c90aaf.tar.bz2 qemu-90166b71c4d75823b48a132e9394af35b9c90aaf.zip |
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 <wency@cn.fujitsu.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'cpu-all.h')
-rw-r--r-- | cpu-all.h | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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 */ |