diff options
author | Jason Power <power.jg@gmail.com> | 2015-06-25 11:58:28 -0500 |
---|---|---|
committer | Jason Power <power.jg@gmail.com> | 2015-06-25 11:58:28 -0500 |
commit | 2f3c4678839b9bf52cdbcb447009ebaa63f50713 (patch) | |
tree | 72cf6c0c91e03610e01b3c46ba1b290b3fed6af3 /src/mem/ruby/system | |
parent | cc813cd5f73ea37173ebda761ebdd4184bf99254 (diff) | |
download | gem5-2f3c4678839b9bf52cdbcb447009ebaa63f50713.tar.xz |
Ruby: Remove assert in RubyPort retry list logic
Remove the assert when adding a port to the RubyPort retry list.
Instead of asserting, just ignore the added port, since it's
already on the list.
Without this patch, Ruby+detailed fails for even the simplest tests
Diffstat (limited to 'src/mem/ruby/system')
-rw-r--r-- | src/mem/ruby/system/RubyPort.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mem/ruby/system/RubyPort.hh b/src/mem/ruby/system/RubyPort.hh index 2fb31ca09..e68af6dab 100644 --- a/src/mem/ruby/system/RubyPort.hh +++ b/src/mem/ruby/system/RubyPort.hh @@ -188,8 +188,8 @@ class RubyPort : public MemObject private: void addToRetryList(MemSlavePort * port) { - assert(std::find(retryList.begin(), retryList.end(), port) == - retryList.end()); + if (std::find(retryList.begin(), retryList.end(), port) != + retryList.end()) return; retryList.push_back(port); } |