changeset fde051006c8c in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=fde051006c8c
description:
UART: Make the 8250's MCR return a deterministic value.
This change makes the 8250 device return the value it has for the MCR
when
read instead of leaving the packet data unmodified/uninitialized. The
value
the UART has for the MCR may not be right, but that's a seperate issue
that
apparently hasn't caused any problems to date.
diffstat:
src/dev/uart8250.cc | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r addb847910d2 -r fde051006c8c src/dev/uart8250.cc
--- a/src/dev/uart8250.cc Mon Oct 04 11:58:06 2010 -0700
+++ b/src/dev/uart8250.cc Sat Oct 09 12:41:31 2010 -0700
@@ -161,6 +161,7 @@
pkt->set(LCR);
break;
case 0x4: // Modem Control Register (MCR)
+ pkt->set(MCR);
break;
case 0x5: // Line Status Register (LSR)
uint8_t lsr;
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev