diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-05-26 22:16:35 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-05-26 22:16:35 +0000 |
commit | 2444ca413b1431d7249b6430172e4009ae368ad5 (patch) | |
tree | 9c5848bfca915440571b33817fb3a4ae02894c20 /hw/i8259.c | |
parent | 77d4bc349abd61ba2e12327e40f95bfc4069f2a0 (diff) |
trace fixes
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@864 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/i8259.c')
-rw-r--r-- | hw/i8259.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/i8259.c b/hw/i8259.c index 62e11f0efe..622f0bb75a 100644 --- a/hw/i8259.c +++ b/hw/i8259.c @@ -146,7 +146,7 @@ static void pic_update_irq(void) } } - printf("pic: cpu_interrupt req=%d\n", pic_irq_requested); + printf("pic: cpu_interrupt\n"); #endif cpu_interrupt(cpu_single_env, CPU_INTERRUPT_HARD); } @@ -172,7 +172,7 @@ void pic_set_irq(int irq, int level) #endif #ifdef DEBUG_IRQ_LATENCY if (level) { - irq_time[irq] = cpu_get_ticks(); + irq_time[irq] = qemu_get_clock(vm_clock); } #endif pic_set_irq1(&pics[irq >> 3], irq & 7, level); @@ -223,7 +223,7 @@ int cpu_get_pic_interrupt(CPUState *env) #ifdef DEBUG_IRQ_LATENCY printf("IRQ%d latency=%0.3fus\n", irq, - (double)(cpu_get_ticks() - irq_time[irq]) * 1000000.0 / ticks_per_sec); + (double)(qemu_get_clock(vm_clock) - irq_time[irq]) * 1000000.0 / ticks_per_sec); #endif #if defined(DEBUG_PIC) printf("pic_interrupt: irq=%d\n", irq); |