cpu: Support trace termination in BaseTrafficGen
authorAndreas Sandberg <andreas.sandberg@arm.com>
Wed, 2 May 2018 13:04:04 +0000 (14:04 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Fri, 13 Jul 2018 09:26:23 +0000 (09:26 +0000)
commit672953ef43f8559bd1ac1f8cb5dba9b997ca0ec9
treec9d437f34d46b43e35baf340efe95aed5d5badbe
parent102027ee2ed50dcadf93b31ef2e7e485b61cc504
cpu: Support trace termination in BaseTrafficGen

Make the BaseTrafficGen handle cases where getNextPacket() can't find
a new packet and returns NULL. In that case, assume the generator has
run out of packets and switch to the next generator.

Change-Id: I5ca6ead550005812fb849ed9ce6b5007a65ddfa7
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/11517
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
src/cpu/testers/traffic_gen/base.cc