cpu: Make the generators usable outside the TrafficGen module
authorAndreas Hansson <andreas.hansson@arm.com>
Mon, 22 Apr 2013 17:20:33 +0000 (13:20 -0400)
committerAndreas Hansson <andreas.hansson@arm.com>
Mon, 22 Apr 2013 17:20:33 +0000 (13:20 -0400)
commitfe97f0e2b1474490d9201f42f35dd78eac04fa74
treeb76e7760310341cc0740e5ea75bf7aa60fe74618
parent3477d60d5c2f20644e301378ca2923766d765f8e
cpu: Make the generators usable outside the TrafficGen module

This patch enables the use of the generator behaviours outside the
TrafficGen module. This is useful e.g. to allow packet replay modes
for other devices in the system without having to replace them with a
TrafficGen in the configuration files.

This change also enables more specific behaviours to be composed as
specific modules, e.g. BaseBandModem can use a number of generators
and have application-specific parameters based around a specific set
of generators.
src/cpu/testers/traffic_gen/SConscript
src/cpu/testers/traffic_gen/generators.cc [new file with mode: 0644]
src/cpu/testers/traffic_gen/generators.hh [new file with mode: 0644]
src/cpu/testers/traffic_gen/traffic_gen.cc
src/cpu/testers/traffic_gen/traffic_gen.hh