changeset 60eb3fef9c2d in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=60eb3fef9c2d
description:
        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:

 src/mem/ruby/system/RubyPort.hh |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r e4f63f1d502d -r 60eb3fef9c2d src/mem/ruby/system/RubyPort.hh
--- a/src/mem/ruby/system/RubyPort.hh   Sun Jun 21 20:52:13 2015 +0100
+++ b/src/mem/ruby/system/RubyPort.hh   Thu Jun 25 11:58:28 2015 -0500
@@ -188,8 +188,8 @@
   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);
     }
 
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to