changeset 2e65cd110a97 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=2e65cd110a97
description:
cpu: Fix TrafficGen message format
Fix erroneous message format for fatal error.
Previously, code did not have type indicator (% instead of %d).
Also removed redundant fatal check.
Ran modified sweep.py with in range and out of range values to test.
diffstat:
src/cpu/testers/traffic_gen/traffic_gen.cc | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diffs (19 lines):
diff -r 791e4619919d -r 2e65cd110a97 src/cpu/testers/traffic_gen/traffic_gen.cc
--- a/src/cpu/testers/traffic_gen/traffic_gen.cc Thu Mar 19 04:06:11
2015 -0400
+++ b/src/cpu/testers/traffic_gen/traffic_gen.cc Thu Mar 19 04:06:12
2015 -0400
@@ -331,13 +331,8 @@
blocksize, page_size);
if (nbr_of_banks_util > nbr_of_banks_DRAM)
- fatal("Attempting to use more banks (%) than "
- "what is available (%)\n",
- nbr_of_banks_util, nbr_of_banks_DRAM);
-
- if (nbr_of_banks_util > nbr_of_banks_DRAM)
- fatal("Attempting to use more banks (%) than "
- "what is available (%)\n",
+ fatal("Attempting to use more banks (%d) than "
+ "what is available (%d)\n",
nbr_of_banks_util, nbr_of_banks_DRAM);
// count the number of sequential packets to
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev