projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed088ed
)
X86: Don't insist on binary encoding for the RTC since we implement BCD.
author
Gabe Black
<gblack@eecs.umich.edu>
Thu, 20 Aug 2009 07:40:14 +0000
(
00:40
-0700)
committer
Gabe Black
<gblack@eecs.umich.edu>
Thu, 20 Aug 2009 07:40:14 +0000
(
00:40
-0700)
src/dev/mc146818.cc
patch
|
blob
|
history
diff --git
a/src/dev/mc146818.cc
b/src/dev/mc146818.cc
index c01d945b3735597bc1d807484678a0da22a16ec0..2ee5dbaaa62769aca151ce7e7493c2a6cc86bad0 100644
(file)
--- 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) {