diff options
author | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-01-26 19:54:31 +0000 |
---|---|---|
committer | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-01-26 19:54:31 +0000 |
commit | 8244d3536e0b178610964e5ae86cda01959214d5 (patch) | |
tree | 70920f4f7827b7f6a8bc1b52366b0d968ba88cd0 /target-i386 | |
parent | a9eb4ae323683bac896fc1baff026c2c549c2629 (diff) | |
download | qemu-8244d3536e0b178610964e5ae86cda01959214d5.tar.gz qemu-8244d3536e0b178610964e5ae86cda01959214d5.tar.bz2 qemu-8244d3536e0b178610964e5ae86cda01959214d5.zip |
Log reset events (Jan Kiszka)
Original idea&code by Kevin Wolf, split-up in two patches and added more
archs.
This patch introduces a flag to log CPU resets. Useful for tracing
unexpected resets (such as those triggered by x86 triple faults).
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6452 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386')
-rw-r--r-- | target-i386/helper.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target-i386/helper.c b/target-i386/helper.c index a28ab935a9..c2da7670d7 100644 --- a/target-i386/helper.c +++ b/target-i386/helper.c @@ -418,6 +418,11 @@ void cpu_reset(CPUX86State *env) { int i; + if (qemu_loglevel_mask(CPU_LOG_RESET)) { + qemu_log("CPU Reset (CPU %d)\n", env->cpu_index); + log_cpu_state(env, X86_DUMP_FPU | X86_DUMP_CCOP); + } + memset(env, 0, offsetof(CPUX86State, breakpoints)); tlb_flush(env, 1); |