cpu: Add basic check to TrafficGen initial state
authorStan Czerniawski <stan.czerniawski@arm.com>
Sun, 23 Mar 2014 15:11:39 +0000 (11:11 -0400)
committerStan Czerniawski <stan.czerniawski@arm.com>
Sun, 23 Mar 2014 15:11:39 +0000 (11:11 -0400)
commite18d0e04a2d44316bc9c9e09b74bcda5562e64cc
treecb788f094a70aecc6982708d2f5543bff45beeeb
parent0c001e729a2d63ee205b384848a7e95ffae492f7
cpu: Add basic check to TrafficGen initial state

Prevent incomplete configuration of TrafficGen class from causing
segmentation faults. If an 'INIT' line is not present in the
configuration file then the currState variable will remain
uninitialized which may result in a crash.
src/cpu/testers/traffic_gen/traffic_gen.cc