qemu/hw m48t59.c
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
m48t59.c +6 -0
@@ -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 :