-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviews.m5sim.org/r/846/
-----------------------------------------------------------

Review request for Default, Ali Saidi, Gabe Black, Steve Reinhardt, and Nathan 
Binkert.


Summary
-------

sim: initial stab at multiple event queues.
This patch creates multiple event queues.  SimObjects
specify via the new eventq_index parameter which queue
they want to schedule on.  The number of event queues
(and thus threads) is controlled implicitly by the max
value of eventq_index.

This code seems to work in that multiple event queues
can be created and events scheduled on an alternate
queue (by changing the default eventq_index value in
SimObject.py).  However, without additional synchronization,
spreading communicating SimObjects across separate
queues will not work.

This patch is not intended to be definitive, or to be
considered for committing in anything like the current
form, but just an initial attempt to make something that
works that we can build and improve upon.

This patch depends on two prior patches:
- "pseudo_inst: clean up workbegin/workend functions" (844)
- "event: minor cleanup" (845)


Diffs
-----

  src/cpu/base.cc b3585da1f970 
  src/cpu/simple/atomic.cc b3585da1f970 
  src/mem/ruby/system/System.cc b3585da1f970 
  src/python/m5/SimObject.py b3585da1f970 
  src/python/m5/event.py b3585da1f970 
  src/python/swig/event.i b3585da1f970 
  src/sim/SConscript b3585da1f970 
  src/sim/core.hh b3585da1f970 
  src/sim/core.cc b3585da1f970 
  src/sim/debug.cc b3585da1f970 
  src/sim/eventq.hh b3585da1f970 
  src/sim/eventq.cc b3585da1f970 
  src/sim/global_event.hh PRE-CREATION 
  src/sim/global_event.cc PRE-CREATION 
  src/sim/serialize.cc b3585da1f970 
  src/sim/sim_events.hh b3585da1f970 
  src/sim/sim_events.cc b3585da1f970 
  src/sim/sim_exit.hh b3585da1f970 
  src/sim/sim_object.cc b3585da1f970 
  src/sim/sim_object_params.hh b3585da1f970 
  src/sim/simulate.hh b3585da1f970 
  src/sim/simulate.cc b3585da1f970 
  src/sim/stat_control.cc b3585da1f970 

Diff: http://reviews.m5sim.org/r/846/diff


Testing
-------


Thanks,

Steve

_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to