changeset 2ddec848b8e8 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=2ddec848b8e8
description:
cpu: Check that minimum TrafficGen period is less than max period
Add a check which ensures that the minumum period for the LINEAR and
RANDOM traffic generator states is less than or equal to the maximum
period. If the minimum period is greater than the maximum period a
fatal is triggered.
diffstat:
src/cpu/testers/traffic_gen/traffic_gen.cc | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r dd486672c9d0 -r 2ddec848b8e8 src/cpu/testers/traffic_gen/traffic_gen.cc
--- a/src/cpu/testers/traffic_gen/traffic_gen.cc Thu May 30 12:54:07
2013 -0400
+++ b/src/cpu/testers/traffic_gen/traffic_gen.cc Thu May 30 12:54:08
2013 -0400
@@ -277,6 +277,9 @@
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,
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev