summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dev/mc146818.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dev/mc146818.cc b/src/dev/mc146818.cc
index 7b219e30c..c01d945b3 100644
--- a/src/dev/mc146818.cc
+++ b/src/dev/mc146818.cc
@@ -49,7 +49,9 @@ MC146818::MC146818(EventManager *em, const string &n, const struct tm time,
{
memset(clock_data, 0, sizeof(clock_data));
stat_regA = RTCA_32768HZ | RTCA_1024HZ;
- stat_regB = RTCB_PRDC_IE |RTCB_BIN | RTCB_24HR;
+ stat_regB = RTCB_PRDC_IE | RTCB_24HR;
+ if (!bcd)
+ stat_regB |= RTCB_BIN;
year = time.tm_year;