3fea59e162
This patch moves send/recvTiming and send/recvTimingSnoop from the Port base class to the MasterPort and SlavePort, and also splits them into separate member functions for requests and responses: send/recvTimingReq, send/recvTimingResp, and send/recvTimingSnoopReq, send/recvTimingSnoopResp. A master port sends requests and receives responses, and also receives snoop requests and sends snoop responses. A slave port has the reciprocal behaviour as it receives requests and sends responses, and sends snoop requests and receives snoop responses. For all MemObjects that have only master ports or slave ports (but not both), e.g. a CPU, or a PIO device, this patch merely adds more clarity to what kind of access is taking place. For example, a CPU port used to call sendTiming, and will now call sendTimingReq. Similarly, a response previously came back through recvTiming, which is now recvTimingResp. For the modules that have both master and slave ports, e.g. the bus, the behaviour was previously relying on branches based on pkt->isRequest(), and this is now replaced with a direct call to the apprioriate member function depending on the type of access. Please note that send/recvRetry is still shared by all the timing accessors and remains in the Port base class for now (to maintain the current bus functionality and avoid changing the statistics of all regressions). The packet queue is split into a MasterPort and SlavePort version to facilitate the use of the new timing accessors. All uses of the PacketQueue are updated accordingly. With this patch, the type of packet (request or response) is now well defined for each type of access, and asserts on pkt->isRequest() and pkt->isResponse() are now moved to the appropriate send member functions. It is also worth noting that sendTimingSnoopReq no longer returns a boolean, as the semantics do not alow snoop requests to be rejected or stalled. All these assumptions are now excplicitly part of the port interface itself. |
||
---|---|---|
.. | ||
resources | ||
comm.hh | ||
cpu.cc | ||
cpu.hh | ||
first_stage.cc | ||
first_stage.hh | ||
inorder_cpu_builder.cc | ||
inorder_dyn_inst.cc | ||
inorder_dyn_inst.hh | ||
inorder_trace.cc | ||
inorder_trace.hh | ||
InOrderCPU.py | ||
InOrderTrace.py | ||
params.hh | ||
pipeline_stage.cc | ||
pipeline_stage.hh | ||
pipeline_traits.5stage.cc | ||
pipeline_traits.5stage.hh | ||
pipeline_traits.9stage.cc | ||
pipeline_traits.9stage.hh | ||
pipeline_traits.9stage.smt2.cc | ||
pipeline_traits.9stage.smt2.hh | ||
pipeline_traits.hh | ||
reg_dep_map.cc | ||
reg_dep_map.hh | ||
resource.cc | ||
resource.hh | ||
resource_pool.9stage.cc | ||
resource_pool.cc | ||
resource_pool.hh | ||
resource_sked.cc | ||
resource_sked.hh | ||
SConscript | ||
SConsopts | ||
thread_context.cc | ||
thread_context.hh | ||
thread_state.cc | ||
thread_state.hh |