summaryrefslogtreecommitdiff
path: root/src/dev/uart8250.cc
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2007-07-15 23:22:04 -0400
committerSteve Reinhardt <stever@eecs.umich.edu>2007-07-15 23:22:04 -0400
commitd5bb145590a16165c362c6157801b7fbab4a0486 (patch)
treedaae998c411bace2532ca75f452c768cf306142c /src/dev/uart8250.cc
parent658eeee50715d9fd334ae3fd3e0e21b6db6de0c4 (diff)
parent884807a68ad7e4f390660b3becfe4ee094334e95 (diff)
downloadgem5-d5bb145590a16165c362c6157801b7fbab4a0486.tar.xz
Merge from head.
--HG-- extra : convert_revision : c5d045208e521f0bc9e47484a380917e27066798
Diffstat (limited to 'src/dev/uart8250.cc')
-rw-r--r--src/dev/uart8250.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/dev/uart8250.cc b/src/dev/uart8250.cc
index 50307aad4..358dda0d8 100644
--- a/src/dev/uart8250.cc
+++ b/src/dev/uart8250.cc
@@ -58,7 +58,7 @@ Uart8250::IntrEvent::IntrEvent(Uart8250 *u, int bit)
const char *
Uart8250::IntrEvent::description()
{
- return "uart interrupt delay event";
+ return "uart interrupt delay";
}
void
@@ -111,7 +111,6 @@ Uart8250::Uart8250(Params *p)
Tick
Uart8250::read(PacketPtr pkt)
{
- assert(pkt->result == Packet::Unknown);
assert(pkt->getAddr() >= pioAddr && pkt->getAddr() < pioAddr + pioSize);
assert(pkt->getSize() == 1);
@@ -186,7 +185,7 @@ Uart8250::read(PacketPtr pkt)
/* uint32_t d32 = *data;
DPRINTF(Uart, "Register read to register %#x returned %#x\n", daddr, d32);
*/
- pkt->result = Packet::Success;
+ pkt->makeAtomicResponse();
return pioDelay;
}
@@ -194,7 +193,6 @@ Tick
Uart8250::write(PacketPtr pkt)
{
- assert(pkt->result == Packet::Unknown);
assert(pkt->getAddr() >= pioAddr && pkt->getAddr() < pioAddr + pioSize);
assert(pkt->getSize() == 1);
@@ -272,7 +270,7 @@ Uart8250::write(PacketPtr pkt)
panic("Tried to access a UART port that doesn't exist\n");
break;
}
- pkt->result = Packet::Success;
+ pkt->makeAtomicResponse();
return pioDelay;
}