changeset 04ed7a1d9904 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=04ed7a1d9904
description:
        Devices: Make the RTC device reflect the use of BCD in its status 
registers.

diffstat:

1 file changed, 3 insertions(+), 1 deletion(-)
src/dev/mc146818.cc |    4 +++-

diffs (14 lines):

diff -r 871fccb3fb7a -r 04ed7a1d9904 src/dev/mc146818.cc
--- a/src/dev/mc146818.cc       Wed Feb 25 10:22:43 2009 -0800
+++ b/src/dev/mc146818.cc       Wed Feb 25 10:22:49 2009 -0800
@@ -49,7 +49,9 @@
 {
     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;
 
_______________________________________________
m5-dev mailing list
m5-dev@m5sim.org
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to