summaryrefslogtreecommitdiff
path: root/src/dev
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-08-20 00:40:14 -0700
committerGabe Black <gblack@eecs.umich.edu>2009-08-20 00:40:14 -0700
commitbc67396ada6a0a55f863d4084d02300315798818 (patch)
tree75bf2e99ff4dd24ed72b850f80744e0a206f2a30 /src/dev
parented088ed15e8eb0da4cdc5662dc74666f1aa3b326 (diff)
downloadgem5-bc67396ada6a0a55f863d4084d02300315798818.tar.xz
X86: Don't insist on binary encoding for the RTC since we implement BCD.
Diffstat (limited to 'src/dev')
-rw-r--r--src/dev/mc146818.cc2
1 files changed, 1 insertions, 1 deletions
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) {