From: Fabrice Bellard <fabrice@bellard.org>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] qemu qemu-doc.texi vl.c vl.h hw/mc146818rtc.c
Date: Wed, 07 Nov 2007 20:07:02 +0100 [thread overview]
Message-ID: <47320CD6.5050009@bellard.org> (raw)
In-Reply-To: <4732079F.8000104@mail.berlios.de>
Stefan Weil wrote:
> Hi,
>
> the change from mc146818rtc.c might be needed for other timer
> implementations,
> too (because not all systems emulated by QEMU use mc146818rtc.c).
>
> A list of candidates is here (fgrep gmtime, fgrep gettime):
> hw/m48t59.c: gmtime_r (&t, tm);
> hw/omap.c: s->convert = rtc_utc ? gmtime_r : localtime_r;
> hw/pl031.c: tm = gmtime(&ti);
> hw/pxa2xx.c: tm = gmtime(&ti);
> hw/etraxfs_timer.c: gettimeofday(&now, NULL);
>
> hw/omap.c needs additional changes for Windows, because gmtime_r
> is missing there.
>
> Maybe all those locations should use a central function (to be written).
Right. There should be at least a function which returns the "current
time" with the rtc_utc flag handling.
Fabrice.
prev parent reply other threads:[~2007-11-07 19:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-07 16:24 [Qemu-devel] qemu qemu-doc.texi vl.c vl.h hw/mc146818rtc.c Fabrice Bellard
2007-11-07 18:44 ` Stefan Weil
2007-11-07 19:07 ` Fabrice Bellard [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47320CD6.5050009@bellard.org \
--to=fabrice@bellard.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.