Revision 93fcfe39 cpu-exec.c
b/cpu-exec.c | ||
---|---|---|
390 | 390 |
svm_check_intercept(SVM_EXIT_INTR); |
391 | 391 |
env->interrupt_request &= ~(CPU_INTERRUPT_HARD | CPU_INTERRUPT_VIRQ); |
392 | 392 |
intno = cpu_get_pic_interrupt(env); |
393 |
if (loglevel & CPU_LOG_TB_IN_ASM) { |
|
394 |
fprintf(logfile, "Servicing hardware INT=0x%02x\n", intno); |
|
395 |
} |
|
393 |
qemu_log_mask(CPU_LOG_TB_IN_ASM, "Servicing hardware INT=0x%02x\n", intno); |
|
396 | 394 |
do_interrupt(intno, 0, 0, 0, 1); |
397 | 395 |
/* ensure that no TB jump will be modified as |
398 | 396 |
the program flow was changed */ |
... | ... | |
405 | 403 |
/* FIXME: this should respect TPR */ |
406 | 404 |
svm_check_intercept(SVM_EXIT_VINTR); |
407 | 405 |
intno = ldl_phys(env->vm_vmcb + offsetof(struct vmcb, control.int_vector)); |
408 |
if (loglevel & CPU_LOG_TB_IN_ASM) |
|
409 |
fprintf(logfile, "Servicing virtual hardware INT=0x%02x\n", intno); |
|
406 |
qemu_log_mask(CPU_LOG_TB_IN_ASM, "Servicing virtual hardware INT=0x%02x\n", intno); |
|
410 | 407 |
do_interrupt(intno, 0, 0, 0, 1); |
411 | 408 |
env->interrupt_request &= ~CPU_INTERRUPT_VIRQ; |
412 | 409 |
next_tb = 0; |
... | ... | |
540 | 537 |
regs_to_env(); |
541 | 538 |
#if defined(TARGET_I386) |
542 | 539 |
env->eflags = env->eflags | helper_cc_compute_all(CC_OP) | (DF & DF_MASK); |
543 |
cpu_dump_state(env, logfile, fprintf, X86_DUMP_CCOP);
|
|
540 |
log_cpu_state(env, X86_DUMP_CCOP);
|
|
544 | 541 |
env->eflags &= ~(DF_MASK | CC_O | CC_S | CC_Z | CC_A | CC_P | CC_C); |
545 | 542 |
#elif defined(TARGET_ARM) |
546 |
cpu_dump_state(env, logfile, fprintf, 0);
|
|
543 |
log_cpu_state(env, 0);
|
|
547 | 544 |
#elif defined(TARGET_SPARC) |
548 |
cpu_dump_state(env, logfile, fprintf, 0);
|
|
545 |
log_cpu_state(env, 0);
|
|
549 | 546 |
#elif defined(TARGET_PPC) |
550 |
cpu_dump_state(env, logfile, fprintf, 0);
|
|
547 |
log_cpu_state(env, 0);
|
|
551 | 548 |
#elif defined(TARGET_M68K) |
552 | 549 |
cpu_m68k_flush_flags(env, env->cc_op); |
553 | 550 |
env->cc_op = CC_OP_FLAGS; |
554 | 551 |
env->sr = (env->sr & 0xffe0) |
555 | 552 |
| env->cc_dest | (env->cc_x << 4); |
556 |
cpu_dump_state(env, logfile, fprintf, 0);
|
|
553 |
log_cpu_state(env, 0);
|
|
557 | 554 |
#elif defined(TARGET_MIPS) |
558 |
cpu_dump_state(env, logfile, fprintf, 0);
|
|
555 |
log_cpu_state(env, 0);
|
|
559 | 556 |
#elif defined(TARGET_SH4) |
560 |
cpu_dump_state(env, logfile, fprintf, 0);
|
|
557 |
log_cpu_state(env, 0);
|
|
561 | 558 |
#elif defined(TARGET_ALPHA) |
562 |
cpu_dump_state(env, logfile, fprintf, 0);
|
|
559 |
log_cpu_state(env, 0);
|
|
563 | 560 |
#elif defined(TARGET_CRIS) |
564 |
cpu_dump_state(env, logfile, fprintf, 0);
|
|
561 |
log_cpu_state(env, 0);
|
|
565 | 562 |
#else |
566 | 563 |
#error unsupported target CPU |
567 | 564 |
#endif |
... | ... | |
579 | 576 |
tb_invalidated_flag = 0; |
580 | 577 |
} |
581 | 578 |
#ifdef DEBUG_EXEC |
582 |
if ((loglevel & CPU_LOG_EXEC)) { |
|
583 |
fprintf(logfile, "Trace 0x%08lx [" TARGET_FMT_lx "] %s\n", |
|
584 |
(long)tb->tc_ptr, tb->pc, |
|
585 |
lookup_symbol(tb->pc)); |
|
586 |
} |
|
579 |
qemu_log_mask(CPU_LOG_EXEC, "Trace 0x%08lx [" TARGET_FMT_lx "] %s\n", |
|
580 |
(long)tb->tc_ptr, tb->pc, |
|
581 |
lookup_symbol(tb->pc)); |
|
587 | 582 |
#endif |
588 | 583 |
/* see if we can patch the calling TB. When the TB |
589 | 584 |
spans two pages, we cannot safely do a direct |
Also available in: Unified diff