qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] qemu/hw m48t59.c
@ 2007-09-30  1:29 Jocelyn Mayer
  0 siblings, 0 replies; 4+ messages in thread
From: Jocelyn Mayer @ 2007-09-30  1:29 UTC (permalink / raw)
  To: qemu-devel

CVSROOT:	/sources/qemu
Module name:	qemu
Changes by:	Jocelyn Mayer <j_mayer>	07/09/30 01:29:07

Modified files:
	hw             : m48t59.c 

Log message:
	Avoid crash on NULL timers.
	This is a rework of Stefan Weil proposed patch.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/m48t59.c?cvsroot=qemu&r1=1.14&r2=1.15

^ permalink raw reply	[flat|nested] 4+ messages in thread
* [Qemu-devel] qemu/hw m48t59.c
@ 2007-12-29  9:03 Blue Swirl
  0 siblings, 0 replies; 4+ messages in thread
From: Blue Swirl @ 2007-12-29  9:03 UTC (permalink / raw)
  To: qemu-devel

CVSROOT:	/cvsroot/qemu
Module name:	qemu
Changes by:	Blue Swirl <blueswir1>	07/12/29 09:03:44

Modified files:
	hw             : m48t59.c 

Log message:
	 Make debug printing consistent (Robert Reif)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/m48t59.c?cvsroot=qemu&r1=1.17&r2=1.18

^ permalink raw reply	[flat|nested] 4+ messages in thread
* [Qemu-devel] qemu/hw m48t59.c
@ 2007-08-04 10:56 Blue Swirl
  0 siblings, 0 replies; 4+ messages in thread
From: Blue Swirl @ 2007-08-04 10:56 UTC (permalink / raw)
  To: qemu-devel

CVSROOT:	/cvsroot/qemu
Module name:	qemu
Changes by:	Blue Swirl <blueswir1>	07/08/04 10:56:26

Modified files:
	hw             : m48t59.c 

Log message:
	 Use UTC/localtime flag in M48Txx

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/m48t59.c?cvsroot=qemu&r1=1.11&r2=1.12

^ permalink raw reply	[flat|nested] 4+ messages in thread
* [Qemu-devel] qemu/hw m48t59.c
@ 2006-06-14 12:41 Fabrice Bellard
  0 siblings, 0 replies; 4+ messages in thread
From: Fabrice Bellard @ 2006-06-14 12:41 UTC (permalink / raw)
  To: qemu-devel

CVSROOT:	/sources/qemu
Module name:	qemu
Changes by:	Fabrice Bellard <bellard>	06/06/14 12:41:34

Modified files:
	hw             : m48t59.c 

Log message:
	clock year fix for sparc (Blue Swirl)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/m48t59.c?cvsroot=qemu&r1=1.7&r2=1.8

Patches:
Index: m48t59.c
===================================================================
RCS file: /sources/qemu/qemu/hw/m48t59.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- m48t59.c	30 Oct 2005 16:58:32 -0000	1.7
+++ m48t59.c	14 Jun 2006 12:41:34 -0000	1.8
@@ -332,6 +332,9 @@
 	tmp = fromBCD(val);
 	if (tmp >= 0 && tmp <= 99) {
 	    get_time(NVRAM, &tm);
+            if (NVRAM->type == 8)
+                tm.tm_year = fromBCD(val) + 68; // Base year is 1968
+            else
 	    tm.tm_year = fromBCD(val);
 	    set_time(NVRAM, &tm);
 	}
@@ -421,6 +424,9 @@
     case 0x1FFF:
         /* year */
         get_time(NVRAM, &tm);
+        if (NVRAM->type == 8) 
+            retval = toBCD(tm.tm_year - 68); // Base year is 1968
+        else
         retval = toBCD(tm.tm_year);
         break;
     default:

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

end of thread, other threads:[~2007-12-29  9:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-30  1:29 [Qemu-devel] qemu/hw m48t59.c Jocelyn Mayer
  -- strict thread matches above, loose matches on Subject: below --
2007-12-29  9:03 Blue Swirl
2007-08-04 10:56 Blue Swirl
2006-06-14 12:41 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).