summaryrefslogtreecommitdiff
path: root/src/dev
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2010-10-09 12:41:31 -0700
committerGabe Black <gblack@eecs.umich.edu>2010-10-09 12:41:31 -0700
commit9268f895d522a10f176099218df35bfe9111b7a9 (patch)
treee1e421565b19168a8d54ff4816032d6246bcfadb /src/dev
parentd4492190e6bbf709724af28d262b0a681c975ec0 (diff)
downloadgem5-9268f895d522a10f176099218df35bfe9111b7a9.tar.xz
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 (limited to 'src/dev')
-rw-r--r--src/dev/uart8250.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dev/uart8250.cc b/src/dev/uart8250.cc
index 2bbcf2683..f8bd23311 100644
--- a/src/dev/uart8250.cc
+++ b/src/dev/uart8250.cc
@@ -161,6 +161,7 @@ Uart8250::read(PacketPtr pkt)
pkt->set(LCR);
break;
case 0x4: // Modem Control Register (MCR)
+ pkt->set(MCR);
break;
case 0x5: // Line Status Register (LSR)
uint8_t lsr;