My simulator basically constantly bangs on the eventq and I had a revelation. Why not add a version of schedule that can take a hint. That hint would be another event. If that other event is scheduled and has the same time and priority, I can insert the new event in the queue in constant time. I think this sort of thing would come up all the time.
The one change that this would have is that currently, the eventq maintains LIFO order of events with the same time/priority. (It was at some point fifo actually, but I changed it because I didn't want people to depend on that.) With this change, the order of events with the same time/priority would be somewhat chaotic. I think we've agreed that we make no guarantees on this anyway (and we really shouldn't if we want to parallelize this thing ever. Any reason for me not to add this interface? Nate _______________________________________________ m5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/m5-dev
