Port: Extend the QueuedPort interface and use where appropriate
Review Request #1312 - Created July 19, 2012 and submitted
| Information | |
|---|---|
| Andreas Hansson | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 9155:eb11628d78be --------------------------- Port: Extend the QueuedPort interface and use where appropriate This patch extends the queued port interfaces with methods for scheduling the transmission of a timing request/response. The methods are named similar to the corresponding sendTiming(Snoop)Req/Resp, replacing the "send" with "sched". As the queues are currently unbounded, the methods always succeed and hence do not return a value. This functionality was previously provided in the subclasses by calling PacketQueue::schedSendTiming with the appropriate parameters. With this change, there is no need to introduce these extra methods in the subclasses, and the use of the queued interface is more uniform and explicit.
util/regress all passing (disregarding t1000 and eio)
Posted (July 24, 2012, 2:23 a.m.)
does it make sense to have schedSendTiming() return true always now so a derived version could return that the buffer was full if it desired?
Ship It!
Posted (Aug. 6, 2012, 12:42 p.m.)
Looks good in general, just one minor tangential issue...
-
src/mem/ruby/system/RubyPort.hh (Diff revision 1) -
It seems asymmetric that you got rid of sendNextCycle() here but kept it below for PioHandler... at some point it would be nice to see the ClockedObject code come in and clean all this up! In the meantime though it seems like the two cases should be consistent one way or another.
Review request changed
Updated (Aug. 6, 2012, 8:39 p.m.)
Description: |
|
||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 2 (+42 -49) |
Ship It!
