Revision 93fcfe39 exec.c
b/exec.c | ||
---|---|---|
1004 | 1004 |
int offset, b; |
1005 | 1005 |
#if 0 |
1006 | 1006 |
if (1) { |
1007 |
if (loglevel) { |
|
1008 |
fprintf(logfile, "modifying code at 0x%x size=%d EIP=%x PC=%08x\n", |
|
1009 |
cpu_single_env->mem_io_vaddr, len, |
|
1010 |
cpu_single_env->eip, |
|
1011 |
cpu_single_env->eip + (long)cpu_single_env->segs[R_CS].base); |
|
1012 |
} |
|
1007 |
qemu_log("modifying code at 0x%x size=%d EIP=%x PC=%08x\n", |
|
1008 |
cpu_single_env->mem_io_vaddr, len, |
|
1009 |
cpu_single_env->eip, |
|
1010 |
cpu_single_env->eip + (long)cpu_single_env->segs[R_CS].base); |
|
1013 | 1011 |
} |
1014 | 1012 |
#endif |
1015 | 1013 |
p = page_find(start >> TARGET_PAGE_BITS); |
... | ... | |
1634 | 1632 |
#else |
1635 | 1633 |
cpu_dump_state(env, stderr, fprintf, 0); |
1636 | 1634 |
#endif |
1637 |
if (logfile) {
|
|
1638 |
fprintf(logfile, "qemu: fatal: ");
|
|
1639 |
vfprintf(logfile, fmt, ap2);
|
|
1640 |
fprintf(logfile, "\n");
|
|
1635 |
if (qemu_log_enabled()) {
|
|
1636 |
qemu_log("qemu: fatal: ");
|
|
1637 |
qemu_log_vprintf(fmt, ap2);
|
|
1638 |
qemu_log("\n");
|
|
1641 | 1639 |
#ifdef TARGET_I386 |
1642 |
cpu_dump_state(env, logfile, fprintf, X86_DUMP_FPU | X86_DUMP_CCOP);
|
|
1640 |
log_cpu_state(env, X86_DUMP_FPU | X86_DUMP_CCOP);
|
|
1643 | 1641 |
#else |
1644 |
cpu_dump_state(env, logfile, fprintf, 0);
|
|
1642 |
log_cpu_state(env, 0);
|
|
1645 | 1643 |
#endif |
1646 | 1644 |
fflush(logfile); |
1647 |
fclose(logfile);
|
|
1645 |
qemu_log_close();
|
|
1648 | 1646 |
} |
1649 | 1647 |
va_end(ap2); |
1650 | 1648 |
va_end(ap); |
Also available in: Unified diff