qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] arm mptimer implementation - why prescaler is multiply by 10?
@ 2015-10-27 13:48 Krzeminski, Marcin (Nokia - PL/Wroclaw)
  2015-10-27 14:19 ` Dmitry Osipenko
  0 siblings, 1 reply; 9+ messages in thread
From: Krzeminski, Marcin (Nokia - PL/Wroclaw) @ 2015-10-27 13:48 UTC (permalink / raw)
  To: qemu-devel@nongnu.org
  Cc: peter.maydell@linaro.org, crosthwaitepeter@gmail.com,
	digetx@gmail.com

[-- Attachment #1: Type: text/plain, Size: 519 bytes --]

Hello,

I am playing with U-Boot on ARM under qemu.
U-boot uses mptimer, and under qemu one second takes about 1 in real world.
At the moment it seem that in u-boot is ok, so I have question about below function.
Why prescaler value is multiply by 10?

static inline uint64_t a9_gtimer_get_conv(A9GTimerState *s)
{
    uint64_t prescale = extract32(s->control, R_CONTROL_PRESCALER_SHIFT,
                                  R_CONTROL_PRESCALER_LEN);

    return (prescale + 1) * 10;
}

Regards,
Marcin


[-- Attachment #2: Type: text/html, Size: 1350 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-10-29 15:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-27 13:48 [Qemu-devel] arm mptimer implementation - why prescaler is multiply by 10? Krzeminski, Marcin (Nokia - PL/Wroclaw)
2015-10-27 14:19 ` Dmitry Osipenko
2015-10-27 14:26   ` Peter Maydell
2015-10-27 18:01   ` Peter Crosthwaite
2015-10-27 18:09     ` Dmitry Osipenko
2015-10-27 18:19     ` Peter Maydell
2015-10-27 18:22       ` Peter Crosthwaite
2015-10-29  7:00         ` Krzeminski, Marcin (Nokia - PL/Wroclaw)
2015-10-29 15:18           ` Dmitry Osipenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).