# HG changeset patch # User Brad Beckmann <brad.beckm...@amd.com> # Date 1263536245 28800 # Node ID 908ff9da9c54903145f1fe5c97d791d590eb2066 # Parent ede19abf2fa6f359994660129a0a36d3020116f5 ruby: fixed Set.cc bug to allow zero sized sets This is necessary for example when no dma sequencers are necessary in the simulated system.
diff -r ede19abf2fa6 -r 908ff9da9c54 src/mem/ruby/common/Set.cc --- a/src/mem/ruby/common/Set.cc Thu Jan 14 22:17:25 2010 -0800 +++ b/src/mem/ruby/common/Set.cc Thu Jan 14 22:17:25 2010 -0800 @@ -69,8 +69,11 @@ Set::Set(int size) { m_p_nArray = NULL; - assert(size>0); - setSize(size); + m_nArrayLen = 0; + m_nSize = 0; + if(size > 0) { + setSize(size); + } } Set::~Set() { _______________________________________________ m5-dev mailing list m5-dev@m5sim.org http://m5sim.org/mailman/listinfo/m5-dev