Commit 2444ca413b1431d7249b6430172e4009ae368ad5

Authored by bellard
1 parent 77d4bc34

trace fixes


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@864 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 3 additions and 3 deletions
hw/i8259.c
... ... @@ -146,7 +146,7 @@ static void pic_update_irq(void)
146 146  
147 147 }
148 148 }
149   - printf("pic: cpu_interrupt req=%d\n", pic_irq_requested);
  149 + printf("pic: cpu_interrupt\n");
150 150 #endif
151 151 cpu_interrupt(cpu_single_env, CPU_INTERRUPT_HARD);
152 152 }
... ... @@ -172,7 +172,7 @@ void pic_set_irq(int irq, int level)
172 172 #endif
173 173 #ifdef DEBUG_IRQ_LATENCY
174 174 if (level) {
175   - irq_time[irq] = cpu_get_ticks();
  175 + irq_time[irq] = qemu_get_clock(vm_clock);
176 176 }
177 177 #endif
178 178 pic_set_irq1(&pics[irq >> 3], irq & 7, level);
... ... @@ -223,7 +223,7 @@ int cpu_get_pic_interrupt(CPUState *env)
223 223 #ifdef DEBUG_IRQ_LATENCY
224 224 printf("IRQ%d latency=%0.3fus\n",
225 225 irq,
226   - (double)(cpu_get_ticks() - irq_time[irq]) * 1000000.0 / ticks_per_sec);
  226 + (double)(qemu_get_clock(vm_clock) - irq_time[irq]) * 1000000.0 / ticks_per_sec);
227 227 #endif
228 228 #if defined(DEBUG_PIC)
229 229 printf("pic_interrupt: irq=%d\n", irq);
... ...