changeset 6d3645f68654 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=6d3645f68654
description:
        X86: Don't insist on binary encoding for the RTC since we implement BCD.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/dev/mc146818.cc |    2 +-

diffs (12 lines):

diff -r 33837b097d69 -r 6d3645f68654 src/dev/mc146818.cc
--- a/src/dev/mc146818.cc       Tue Aug 18 00:52:47 2009 -0700
+++ b/src/dev/mc146818.cc       Thu Aug 20 00:40:14 2009 -0700
@@ -96,7 +96,7 @@
             replaceBits(stat_regA, data, 6, 0);
             break;
           case RTC_STAT_REGB:
-            if ((data & ~(RTCB_PRDC_IE | RTCB_SQWE)) != (RTCB_BIN | RTCB_24HR))
+            if ((data & ~(RTCB_PRDC_IE | RTCB_SQWE)) != RTCB_24HR)
                 panic("Write to RTC reg B bits that are not implemented!\n");
 
             if (data & RTCB_PRDC_IE) {
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to