cpu-tester: Added ExitGen to TrafficGen
authorRiken Gohil <Riken.Gohil@arm.com>
Tue, 1 Aug 2017 10:08:16 +0000 (11:08 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Tue, 19 Dec 2017 13:14:51 +0000 (13:14 +0000)
commitd17e77f1f6075583d5b973030d2b68557d50f1b5
treef3cc0a83d68985eef47bbacbf20291ca23a084b3
parent2a8e7a9ee62ec5caf1c08817005466c10a04c6e3
cpu-tester: Added ExitGen to TrafficGen

Added the ExitGen to the TrafficGenerator which allows an EXIT
state to be added to the TrafficGen configuration file. Entering this
state will cause the simulation to exit immediately. Please note that
if multiple TrafficGen instances have an EXIT state, the first of these
to be encountered will cause the simulation to terminate.

Change-Id: Ieea51f05ffb780771f007787a2b119f79143d0c1
Reviewed-by: Sascha Bischoff <sascha.bischoff@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/5723
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
src/cpu/testers/traffic_gen/SConscript
src/cpu/testers/traffic_gen/exit_gen.cc [new file with mode: 0644]
src/cpu/testers/traffic_gen/exit_gen.hh [new file with mode: 0644]
src/cpu/testers/traffic_gen/traffic_gen.cc
src/cpu/testers/traffic_gen/traffic_gen.hh