diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2007-07-15 14:32:55 -0700 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2007-07-15 14:32:55 -0700 |
commit | 9172876dd7ba4877c586ced30904548539451f37 (patch) | |
tree | d78db2592b39de8d4e7d711cbcd3bb779ce546de /src/cpu/memtest/memtest.cc | |
parent | b1bdc3b3d9de40387a209777aa972f96792c8d6a (diff) | |
download | gem5-9172876dd7ba4877c586ced30904548539451f37.tar.xz |
Fix problem with unset max_loads in memtest.
Also make default 0, and make that mean run forever.
--HG--
extra : convert_revision : 3e60a52b1c5e334a9ef3d744cf7ee1d851ba4aa9
Diffstat (limited to 'src/cpu/memtest/memtest.cc')
-rw-r--r-- | src/cpu/memtest/memtest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/memtest/memtest.cc b/src/cpu/memtest/memtest.cc index 019b4328c..db3ca282a 100644 --- a/src/cpu/memtest/memtest.cc +++ b/src/cpu/memtest/memtest.cc @@ -232,7 +232,7 @@ MemTest::completeRequest(PacketPtr pkt) nextProgressMessage += progressInterval; } - if (numReads >= maxLoads) + if (maxLoads != 0 && numReads >= maxLoads) exitSimLoop("maximum number of loads reached"); break; |