X86: Don't insist on binary encoding for the RTC since we implement BCD.
authorGabe Black <gblack@eecs.umich.edu>
Thu, 20 Aug 2009 07:40:14 +0000 (00:40 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Thu, 20 Aug 2009 07:40:14 +0000 (00:40 -0700)
src/dev/mc146818.cc

index c01d945b3735597bc1d807484678a0da22a16ec0..2ee5dbaaa62769aca151ce7e7493c2a6cc86bad0 100644 (file)
@@ -96,7 +96,7 @@ MC146818::writeData(const uint8_t addr, const uint8_t data)
             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) {