Bridge: Split deferred request, response and sender state
authorAndreas Hansson <andreas.hansson@arm.com>
Wed, 30 May 2012 09:28:06 +0000 (05:28 -0400)
committerAndreas Hansson <andreas.hansson@arm.com>
Wed, 30 May 2012 09:28:06 +0000 (05:28 -0400)
commit3b367db42c5eedac8a60cbbd58bb4e39012bb5cf
tree34f47c89a8d96c3fb5e258da6b40f20c7e8ea1ba
parentd9988ded3c0857b3bfef656109ab1e33ff068e16
Bridge: Split deferred request, response and sender state

This patch splits the PacketBuffer class into a RequestState and a
DeferredRequest and DeferredResponse. Only the requests need a
SenderState, and the deferred requests and responses only need an
associated point in time for the request and the response queue.

Besides the cleaning up, the goal is to simplify the transition to a
new port handshake, and with these changes, the two packet queues are
starting to look very similar to the generic packet queue, but
currently they do a few unique things relating to the NACK and
counting of requests/responses that the packet queue cannot be
conveniently used. This will be addressed in a later patch.
src/mem/bridge.cc
src/mem/bridge.hh