From: Gabe Black Date: Thu, 20 Aug 2009 07:40:14 +0000 (-0700) Subject: X86: Don't insist on binary encoding for the RTC since we implement BCD. X-Git-Tag: Calvin_Submission~36 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bc67396ada6a0a55f863d4084d02300315798818;p=gem5.git X86: Don't insist on binary encoding for the RTC since we implement BCD. --- diff --git a/src/dev/mc146818.cc b/src/dev/mc146818.cc index c01d945b3..2ee5dbaaa 100644 --- a/src/dev/mc146818.cc +++ b/src/dev/mc146818.cc @@ -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) {