summaryrefslogtreecommitdiff
path: root/src/mem
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2008-09-26 08:18:57 -0700
committerNathan Binkert <nate@binkert.org>2008-09-26 08:18:57 -0700
commit9838be252114cf044735ca07007d23ee03d8da2c (patch)
treee73e627062f5e20b83ad344fc69c368e9d893ab6 /src/mem
parentabca171e244b27d1c44a9bcdedbe231bdc342cbb (diff)
downloadgem5-9838be252114cf044735ca07007d23ee03d8da2c.tar.xz
When nesting if statements, use braces to avoid ambiguous else clauses.
Diffstat (limited to 'src/mem')
-rw-r--r--src/mem/bridge.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mem/bridge.cc b/src/mem/bridge.cc
index c09cacc00..2e668ec32 100644
--- a/src/mem/bridge.cc
+++ b/src/mem/bridge.cc
@@ -130,7 +130,7 @@ Bridge::BridgePort::recvTiming(PacketPtr pkt)
return true;
}
- if (pkt->needsResponse())
+ if (pkt->needsResponse()) {
if (respQueueFull()) {
DPRINTF(BusBridge, "Local queue full, no space for response, nacking\n");
DPRINTF(BusBridge, "queue size: %d outreq: %d outstanding resp: %d\n",
@@ -141,6 +141,7 @@ Bridge::BridgePort::recvTiming(PacketPtr pkt)
DPRINTF(BusBridge, "Request Needs response, reserving space\n");
++outstandingResponses;
}
+ }
otherPort->queueForSendTiming(pkt);