From fe97f0e2b1474490d9201f42f35dd78eac04fa74 Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Mon, 22 Apr 2013 13:20:33 -0400 Subject: 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 | 1 + 1 file changed, 1 insertion(+) (limited to 'src/cpu/testers/traffic_gen/SConscript') diff --git a/src/cpu/testers/traffic_gen/SConscript b/src/cpu/testers/traffic_gen/SConscript index 09a06fe04..00a3a84bc 100644 --- a/src/cpu/testers/traffic_gen/SConscript +++ b/src/cpu/testers/traffic_gen/SConscript @@ -44,6 +44,7 @@ Import('*') if env['HAVE_PROTOBUF']: SimObject('TrafficGen.py') + Source('generators.cc') Source('traffic_gen.cc') DebugFlag('TrafficGen') -- cgit v1.2.3