mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
C99 64 bit printf
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2018 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
3b42c9794c
commit
26a76461f2
25 changed files with 67 additions and 64 deletions
|
@ -239,7 +239,7 @@ void cpu_set_apic_base(CPUState *env, uint64_t val)
|
|||
{
|
||||
APICState *s = env->apic_state;
|
||||
#ifdef DEBUG_APIC
|
||||
printf("cpu_set_apic_base: %016llx\n", val);
|
||||
printf("cpu_set_apic_base: %016" PRIx64 "\n", val);
|
||||
#endif
|
||||
s->apicbase = (val & 0xfffff000) |
|
||||
(s->apicbase & (MSR_IA32_APICBASE_BSP | MSR_IA32_APICBASE_ENABLE));
|
||||
|
@ -255,7 +255,7 @@ uint64_t cpu_get_apic_base(CPUState *env)
|
|||
{
|
||||
APICState *s = env->apic_state;
|
||||
#ifdef DEBUG_APIC
|
||||
printf("cpu_get_apic_base: %016llx\n", (uint64_t)s->apicbase);
|
||||
printf("cpu_get_apic_base: %016" PRIx64 "\n", (uint64_t)s->apicbase);
|
||||
#endif
|
||||
return s->apicbase;
|
||||
}
|
||||
|
|
|
@ -209,7 +209,7 @@ static int64_t get_next_irq_time(CUDATimer *s, int64_t current_time)
|
|||
}
|
||||
#if 0
|
||||
#ifdef DEBUG_CUDA
|
||||
printf("latch=%d counter=%lld delta_next=%lld\n",
|
||||
printf("latch=%d counter=%" PRId64 " delta_next=%" PRId64 "\n",
|
||||
s->latch, d, next_time - d);
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -531,7 +531,7 @@ void irq_info(void)
|
|||
for (i = 0; i < 16; i++) {
|
||||
count = irq_count[i];
|
||||
if (count > 0)
|
||||
term_printf("%2d: %lld\n", i, count);
|
||||
term_printf("%2d: %" PRId64 "\n", i, count);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -60,7 +60,7 @@ static void cpu_mips_update_count (CPUState *env, uint32_t count,
|
|||
next++;
|
||||
#if 0
|
||||
if (logfile) {
|
||||
fprintf(logfile, "%s: 0x%08llx %08x %08x => 0x%08llx\n",
|
||||
fprintf(logfile, "%s: 0x%08" PRIx64 " %08x %08x => 0x%08" PRIx64 "\n",
|
||||
__func__, now, count, compare, next - now);
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -765,7 +765,7 @@ static void complete (SB16State *s)
|
|||
);
|
||||
}
|
||||
}
|
||||
ldebug ("mix silence %d %d %lld\n", samples, bytes, ticks);
|
||||
ldebug ("mix silence %d %d %" PRId64 "\n", samples, bytes, ticks);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
@ -124,7 +124,7 @@ static void start_timer0(SH7750State * s)
|
|||
s->periph_freq);
|
||||
if (next == now)
|
||||
next = now + 1;
|
||||
fprintf(stderr, "now=%016llx, next=%016llx\n", now, next);
|
||||
fprintf(stderr, "now=%016" PRIx64 ", next=%016" PRIx64 "\n", now, next);
|
||||
fprintf(stderr, "timer will underflow in %f seconds\n",
|
||||
(float) (next - now) / (float) ticks_per_sec);
|
||||
|
||||
|
|
|
@ -203,7 +203,7 @@ void slavio_irq_info(void *opaque)
|
|||
for (i = 0; i < 32; i++) {
|
||||
count = s->irq_count[i];
|
||||
if (count > 0)
|
||||
term_printf("%2d: %lld\n", i, count);
|
||||
term_printf("%2d: %" PRId64 "\n", i, count);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -100,7 +100,7 @@ static void slavio_timer_get_out(SLAVIO_TIMERState *s)
|
|||
// Convert remaining counter ticks to CPU ticks
|
||||
s->expire_time = ticks + muldiv64(limit - count, ticks_per_sec, CNT_FREQ);
|
||||
|
||||
DPRINTF("irq %d limit %d reached %d d %lld count %d s->c %x diff %lld stopped %d mode %d\n", s->irq, limit, s->reached?1:0, (ticks-s->count_load_time), count, s->count, s->expire_time - ticks, s->stopped, s->mode);
|
||||
DPRINTF("irq %d limit %d reached %d d %" PRId64 " count %d s->c %x diff %" PRId64 " stopped %d mode %d\n", s->irq, limit, s->reached?1:0, (ticks-s->count_load_time), count, s->count, s->expire_time - ticks, s->stopped, s->mode);
|
||||
|
||||
if (s->mode != 1)
|
||||
pic_set_irq_cpu(s->irq, out, s->cpu);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue