gem5/src/cpu/inorder
Andreas Hansson 3fea59e162 MEM: Separate requests and responses for timing accesses
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.
2012-05-01 13:40:42 -04:00
..
resources MEM: Separate requests and responses for timing accesses 2012-05-01 13:40:42 -04:00
comm.hh Faults: Turn off arch/faults.hh 2012-02-07 04:43:21 -08:00
cpu.cc MEM: Separate requests and responses for timing accesses 2012-05-01 13:40:42 -04:00
cpu.hh MEM: Separate requests and responses for timing accesses 2012-05-01 13:40:42 -04:00
first_stage.cc trace: reimplement the DTRACE function so it doesn't use a vector 2011-04-15 10:44:32 -07:00
first_stage.hh includes: sort all includes 2011-04-15 10:44:06 -07:00
inorder_cpu_builder.cc SE/FS: Get rid of FULL_SYSTEM in the CPU directory. 2011-11-18 01:33:28 -08:00
inorder_dyn_inst.cc clang/gcc: Fix compilation issues with clang 3.0 and gcc 4.6 2012-04-14 05:43:31 -04:00
inorder_dyn_inst.hh gcc: Clean-up of non-C++0x compliant code, first steps 2012-03-19 06:36:09 -04:00
inorder_trace.cc trace: reimplement the DTRACE function so it doesn't use a vector 2011-04-15 10:44:32 -07:00
inorder_trace.hh Make commenting on close namespace brackets consistent. 2011-01-03 14:35:43 -08:00
InOrderCPU.py CPU: Round-two unifying instr/data CPU ports across models 2012-02-24 11:42:00 -05:00
InOrderTrace.py InOrder: Import new inorder CPU model from MIPS. 2009-02-10 15:49:29 -08:00
params.hh SE/FS: Get rid of FULL_SYSTEM in the CPU directory. 2011-11-18 01:33:28 -08:00
pipeline_stage.cc inorder: handle serializing instructions 2011-06-19 21:43:41 -04:00
pipeline_stage.hh inorder: implement trap handling 2011-06-19 21:43:36 -04:00
pipeline_traits.5stage.cc includes: sort all includes 2011-04-15 10:44:06 -07:00
pipeline_traits.5stage.hh includes: sort all includes 2011-04-15 10:44:06 -07:00
pipeline_traits.9stage.cc includes: sort all includes 2011-04-15 10:44:06 -07:00
pipeline_traits.9stage.hh includes: sort all includes 2011-04-15 10:44:06 -07:00
pipeline_traits.9stage.smt2.cc includes: sort all includes 2011-04-15 10:44:06 -07:00
pipeline_traits.9stage.smt2.hh includes: sort all includes 2011-04-15 10:44:06 -07:00
pipeline_traits.hh gcc: Clean-up of non-C++0x compliant code, first steps 2012-03-19 06:36:09 -04:00
reg_dep_map.cc inorder: clear reg. dep entry after removing from list 2011-06-19 21:43:42 -04:00
reg_dep_map.hh imported patch squash_from_next_stage 2011-06-19 21:43:36 -04:00
resource.cc clang: Enable compiling gem5 using clang 2.9 and 3.0 2012-01-31 12:05:52 -05:00
resource.hh gcc: Clean-up of non-C++0x compliant code, first steps 2012-03-19 06:36:09 -04:00
resource_pool.9stage.cc CPU: Round-two unifying instr/data CPU ports across models 2012-02-24 11:42:00 -05:00
resource_pool.cc CPU: Round-two unifying instr/data CPU ports across models 2012-02-24 11:42:00 -05:00
resource_pool.hh CPU: Round-two unifying instr/data CPU ports across models 2012-02-24 11:42:00 -05:00
resource_sked.cc inorder: addtl functionaly for inst. skeds 2011-06-19 21:43:35 -04:00
resource_sked.hh inorder: addtl functionaly for inst. skeds 2011-06-19 21:43:35 -04:00
SConscript inorder: stall stores on store conditionals & compare/swaps 2011-06-19 21:43:39 -04:00
SConsopts cpu_models: get rid of cpu_models.py and move the stuff into SCons 2010-02-26 18:14:48 -08:00
thread_context.cc MEM: Make port proxies use references rather than pointers 2012-02-24 11:45:30 -05:00
thread_context.hh MEM: Enable multiple distributed generalized memories 2012-04-06 13:46:31 -04:00
thread_state.cc SE/FS: Make the functions available from the TC consistent between SE and FS. 2011-10-31 02:58:22 -07:00
thread_state.hh Faults: Turn off arch/faults.hh 2012-02-07 04:43:21 -08:00