summaryrefslogtreecommitdiff
path: root/src/cpu/testers/traffic_gen/traffic_gen.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/testers/traffic_gen/traffic_gen.cc')
-rw-r--r--src/cpu/testers/traffic_gen/traffic_gen.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cpu/testers/traffic_gen/traffic_gen.cc b/src/cpu/testers/traffic_gen/traffic_gen.cc
index cb2e6e7bb..ed3518bb4 100644
--- a/src/cpu/testers/traffic_gen/traffic_gen.cc
+++ b/src/cpu/testers/traffic_gen/traffic_gen.cc
@@ -277,6 +277,9 @@ TrafficGen::parseConfig()
if (read_percent > 100)
fatal("%s cannot have more than 100% reads", name());
+ if (min_period > max_period)
+ fatal("%s cannot have min_period > max_period", name());
+
if (mode == "LINEAR") {
states[id] = new LinearGen(name(), masterID,
duration, start_addr,