diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2009-08-20 00:40:14 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2009-08-20 00:40:14 -0700 |
commit | bc67396ada6a0a55f863d4084d02300315798818 (patch) | |
tree | 75bf2e99ff4dd24ed72b850f80744e0a206f2a30 /src/dev | |
parent | ed088ed15e8eb0da4cdc5662dc74666f1aa3b326 (diff) | |
download | gem5-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.cc | 2 |
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) { |