aboutsummaryrefslogtreecommitdiff
path: root/exec.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-06-21 13:11:07 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-06-21 13:11:07 +0000
commit7501267e2210788f548edd8adf1704731b235d3f (patch)
tree3aa764a3a5dba780beba8b5a13ec7ce28b8e5a95 /exec.c
parent13b55754afd94ad10124955ec67f8206f57960de (diff)
cpu_abort()
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@253 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/exec.c b/exec.c
index 16213dcf8a..79c2bd0b6a 100644
--- a/exec.c
+++ b/exec.c
@@ -563,3 +563,19 @@ TranslationBlock *tb_find_pc(unsigned long tc_ptr)
}
return &tbs[m_max];
}
+
+void cpu_abort(CPUState *env, const char *fmt, ...)
+{
+ va_list ap;
+
+ va_start(ap, fmt);
+ fprintf(stderr, "qemu: fatal: ");
+ vfprintf(stderr, fmt, ap);
+ fprintf(stderr, "\n");
+#ifdef TARGET_I386
+ cpu_x86_dump_state(env, stderr, X86_DUMP_FPU | X86_DUMP_CCOP);
+#endif
+ va_end(ap);
+ abort();
+}
+