diff options
author | Brad Beckmann <Brad.Beckmann@amd.com> | 2012-07-10 22:51:54 -0700 |
---|---|---|
committer | Brad Beckmann <Brad.Beckmann@amd.com> | 2012-07-10 22:51:54 -0700 |
commit | 6f9bd33b73428709b534d2c4a2b8246557be2397 (patch) | |
tree | fb5b51df8a803c177b01594382e60e5606b857c6 /src/cpu | |
parent | a22918dd41dfda1fe7dfd46db33bc7737bfdbb41 (diff) | |
download | gem5-6f9bd33b73428709b534d2c4a2b8246557be2397.tar.xz |
ruby: remove the cpu assumptions for the random tester
Diffstat (limited to 'src/cpu')
-rw-r--r-- | src/cpu/testers/rubytest/CheckTable.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cpu/testers/rubytest/CheckTable.cc b/src/cpu/testers/rubytest/CheckTable.cc index b4860b62b..f10132c89 100644 --- a/src/cpu/testers/rubytest/CheckTable.cc +++ b/src/cpu/testers/rubytest/CheckTable.cc @@ -106,6 +106,7 @@ CheckTable::addCheck(const Address& address) Check* CheckTable::getRandomCheck() { + assert(m_check_vector.size() > 0); return m_check_vector[random() % m_check_vector.size()]; } |