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 | eca1bdf415c454093dfc7eb983cd49287c043967 (patch) | |
tree | 70920f4f7827b7f6a8bc1b52366b0d968ba88cd0 /target-mips/translate.c | |
parent | 2f5f89963186d42a7ded253bc6cf5b32abb45cec (diff) | |
download | hqemu-eca1bdf415c454093dfc7eb983cd49287c043967.zip hqemu-eca1bdf415c454093dfc7eb983cd49287c043967.tar.gz |
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-mips/translate.c')
-rw-r--r-- | target-mips/translate.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target-mips/translate.c b/target-mips/translate.c index 692ea6d..b447b98 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -8489,6 +8489,11 @@ CPUMIPSState *cpu_mips_init (const char *cpu_model) void cpu_reset (CPUMIPSState *env) { + if (qemu_loglevel_mask(CPU_LOG_RESET)) { + qemu_log("CPU Reset (CPU %d)\n", env->cpu_index); + log_cpu_state(env, 0); + } + memset(env, 0, offsetof(CPUMIPSState, breakpoints)); tlb_flush(env, 1); |