projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c39d5b7
)
fixed date storage in CMOS
author
bellard
<bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 1 Jul 2003 15:07:57 +0000
(15:07 +0000)
committer
bellard
<bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 1 Jul 2003 15:07:57 +0000
(15:07 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@306
c046a42c
-6fe2-441c-8c8c-
71466251a162
vl.c
patch
|
blob
|
history
diff --git
a/vl.c
b/vl.c
index 53f475a89efa2128b3bfc349db82cea7cb74e73f..885958b16e09aa90325e580e5c959bae5418dbd2 100644
(file)
--- a/
vl.c
+++ b/
vl.c
@@
-519,7
+519,7
@@
void cmos_init(void)
cmos_data[RTC_HOURS] = to_bcd(tm->tm_hour);
cmos_data[RTC_DAY_OF_WEEK] = to_bcd(tm->tm_wday);
cmos_data[RTC_DAY_OF_MONTH] = to_bcd(tm->tm_mday);
- cmos_data[RTC_MONTH] = to_bcd(tm->tm_mon);
+ cmos_data[RTC_MONTH] = to_bcd(tm->tm_mon
+ 1
);
cmos_data[RTC_YEAR] = to_bcd(tm->tm_year % 100);
cmos_data[RTC_REG_A] = 0x26;