cpu: Block traffic generator when requests have to retry
authorAndreas Hansson <andreas.hansson@arm.com>
Thu, 30 May 2013 16:54:05 +0000 (12:54 -0400)
committerAndreas Hansson <andreas.hansson@arm.com>
Thu, 30 May 2013 16:54:05 +0000 (12:54 -0400)
commit4931414ca79b97ee64a958c4dd4ed1cafc44b4bd
treed906914433751bd435e53888e7a8a9aa63b43b5f
parentc9c35da9343a763385f8c4680ff9b667be224e1d
cpu: Block traffic generator when requests have to retry

This patch changes the queued port for a conventional master port and
stalls the traffic generator when requests are not immediately
accepted. This is a first step to allowing elasticity in the injection
of requests.

The patch also adds stats for the sent packets and retries, and
slightly changes how the nextPacketTick and getNextPacket
interact. The advancing of the trace is now moved to getNextPacket and
nextPacketTick is only responsible for answering the question when the
next packet should be sent.
src/cpu/testers/traffic_gen/generators.cc
src/cpu/testers/traffic_gen/generators.hh
src/cpu/testers/traffic_gen/traffic_gen.cc
src/cpu/testers/traffic_gen/traffic_gen.hh