qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] qemu qemu-doc.texi vl.c vl.h hw/mc146818rtc.c
@ 2007-11-07 16:24 Fabrice Bellard
  2007-11-07 18:44 ` Stefan Weil
  0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Bellard @ 2007-11-07 16:24 UTC (permalink / raw)
  To: qemu-devel

CVSROOT:	/sources/qemu
Module name:	qemu
Changes by:	Fabrice Bellard <bellard>	07/11/07 16:24:34

Modified files:
	.              : qemu-doc.texi vl.c vl.h 
	hw             : mc146818rtc.c 

Log message:
	added -startdate option

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/qemu-doc.texi?cvsroot=qemu&r1=1.163&r2=1.164
http://cvs.savannah.gnu.org/viewcvs/qemu/vl.c?cvsroot=qemu&r1=1.353&r2=1.354
http://cvs.savannah.gnu.org/viewcvs/qemu/vl.h?cvsroot=qemu&r1=1.287&r2=1.288
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/mc146818rtc.c?cvsroot=qemu&r1=1.12&r2=1.13

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

* Re: [Qemu-devel] qemu qemu-doc.texi vl.c vl.h hw/mc146818rtc.c
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Weil @ 2007-11-07 18:44 UTC (permalink / raw)
  To: qemu-devel

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).

Stefan

Fabrice Bellard schrieb:
> CVSROOT: /sources/qemu
> Module name: qemu
> Changes by: Fabrice Bellard <bellard> 07/11/07 16:24:34
>
> Modified files:
> . : qemu-doc.texi vl.c vl.h
> hw : mc146818rtc.c
>
> Log message:
> added -startdate option
>
> CVSWeb URLs:
> http://cvs.savannah.gnu.org/viewcvs/qemu/qemu-doc.texi?cvsroot=qemu&r1=1.163&r2=1.164
> http://cvs.savannah.gnu.org/viewcvs/qemu/vl.c?cvsroot=qemu&r1=1.353&r2=1.354
> http://cvs.savannah.gnu.org/viewcvs/qemu/vl.h?cvsroot=qemu&r1=1.287&r2=1.288
> http://cvs.savannah.gnu.org/viewcvs/qemu/hw/mc146818rtc.c?cvsroot=qemu&r1=1.12&r2=1.13
>
>
>

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

* Re: [Qemu-devel] qemu qemu-doc.texi vl.c vl.h hw/mc146818rtc.c
  2007-11-07 18:44 ` Stefan Weil
@ 2007-11-07 19:07   ` Fabrice Bellard
  0 siblings, 0 replies; 3+ messages in thread
From: Fabrice Bellard @ 2007-11-07 19:07 UTC (permalink / raw)
  To: qemu-devel

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.

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

end of thread, other threads:[~2007-11-07 19:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).