gem5/src/mem/ruby/common
Nilay Vaish 39e9445468 ruby: consumer: avoid using receiver side clock
A set of patches was recently committed to allow multiple clock domains
in ruby. In those patches, I had inadvertently made an incorrect use of
the clocks. Suppose object A needs to schedule an event on object B. It
was possible that A accesses B's clock to schedule the event. This is not
possible in actual system. Hence, changes are being to the Consumer class
so as to avoid such happenings. Note that in a multi eventq simulation,
this can possibly lead to an incorrect simulation.

There are two functions in the Consumer class that are used for scheduling
events. The first function takes in the relative delay over the current time
as the argument and adds the current time to it for scheduling the event.
The second function takes in the absolute time (in ticks) for scheduling the
event. The first function is now being moved to protected section of the
class so that only objects of the derived classes can use it. All other
objects will have to specify absolute time while scheduling an event
for some consumer.
2013-03-22 15:53:26 -05:00
..
Address.cc ruby: add functions for computing next stride/page address 2012-12-11 10:05:53 -06:00
Address.hh ruby: add functions for computing next stride/page address 2012-12-11 10:05:53 -06:00
Consumer.cc ruby: consumer: avoid using receiver side clock 2013-03-22 15:53:26 -05:00
Consumer.hh ruby: consumer: avoid using receiver side clock 2013-03-22 15:53:26 -05:00
DataBlock.cc Ruby: Use uint8_t instead of uint8 everywhere 2012-09-11 09:23:56 -05:00
DataBlock.hh Ruby: Use uint8_t instead of uint8 everywhere 2012-09-11 09:23:56 -05:00
Global.cc ruby: record fully busy cycle with in the controller 2013-02-10 21:26:22 -06:00
Global.hh ruby: record fully busy cycle with in the controller 2013-02-10 21:26:22 -06:00
Histogram.cc ruby: modifies histogram add() function 2013-02-10 21:26:22 -06:00
Histogram.hh ruby: modifies histogram add() function 2013-02-10 21:26:22 -06:00
NetDest.cc Ruby NetDest: add assert for bad element in netdest 2012-08-01 17:07:34 -05:00
NetDest.hh Ruby: Remove some unused typedefs 2011-11-03 22:46:45 -05:00
SConscript Ruby: Remove RubyEventQueue 2012-08-27 01:00:55 -05:00
Set.cc ruby: set: corrects csprintf() call introduced by 7d95b650c9b6 2013-03-15 16:28:08 -05:00
Set.hh Ruby Set: Move NUMBER_WORDS_PER_SET to Set.hh 2012-01-06 05:11:07 -06:00
SubBlock.cc ruby: get rid of Vector and use STL 2010-06-10 23:17:07 -07:00
SubBlock.hh Ruby: Use uint8_t instead of uint8 everywhere 2012-09-11 09:23:56 -05:00
TypeDefines.hh ruby: replace Time with Cycles (final patch in the series) 2013-02-10 21:43:10 -06:00