OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13b5575
)
cpu_abort()
author
bellard
<bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 21 Jun 2003 13:11:07 +0000
(13:11 +0000)
committer
bellard
<bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 21 Jun 2003 13:11:07 +0000
(13:11 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@253
c046a42c
-6fe2-441c-8c8c-
71466251a162
exec.c
patch
|
blob
|
history
diff --git
a/exec.c
b/exec.c
index
16213dc
..
79c2bd0
100644
(file)
--- 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();
+}
+