gem5/src/cpu/ozone
William Wang f9d403a7b9 MEM: Introduce the master/slave port sub-classes in C++
This patch introduces the notion of a master and slave port in the C++
code, thus bringing the previous classification from the Python
classes into the corresponding simulation objects and memory objects.

The patch enables us to classify behaviours into the two bins and add
assumptions and enfore compliance, also simplifying the two
interfaces. As a starting point, isSnooping is confined to a master
port, and getAddrRanges to slave ports. More of these specilisations
are to come in later patches.

The getPort function is not getMasterPort and getSlavePort, and
returns a port reference rather than a pointer as NULL would never be
a valid return value. The default implementation of these two
functions is placed in MemObject, and calls fatal.

The one drawback with this specific patch is that it requires some
code duplication, e.g. QueuedPort becomes QueuedMasterPort and
QueuedSlavePort, and BusPort becomes BusMasterPort and BusSlavePort
(avoiding multiple inheritance). With the later introduction of the
port interfaces, moving the functionality outside the port itself, a
lot of the duplicated code will disappear again.
2012-03-30 09:40:11 -04:00
..
back_end.cc Update copyright. 2006-06-07 16:02:55 -04:00
back_end.hh includes: sort all includes 2011-04-15 10:44:06 -07:00
back_end_impl.hh O3/Ozone: Eliminate dead code counting software prefetch insts 2012-03-09 09:59:28 -05:00
base_dyn_inst.cc includes: sort all includes 2011-04-15 10:44:06 -07:00
bpred_unit.cc Changes to get OzoneCPU to compile once more. 2006-06-22 23:33:26 -04:00
checker_builder.cc SE/FS: Get rid of FULL_SYSTEM in the CPU directory. 2011-11-18 01:33:28 -08:00
cpu.cc Changes to get OzoneCPU to compile once more. 2006-06-22 23:33:26 -04:00
cpu.hh MEM: Introduce the master/slave port sub-classes in C++ 2012-03-30 09:40:11 -04:00
cpu_builder.cc SE/FS: Get rid of FULL_SYSTEM in the CPU directory. 2011-11-18 01:33:28 -08:00
cpu_impl.hh MEM: Introduce the master/slave port sub-classes in C++ 2012-03-30 09:40:11 -04:00
dyn_inst.cc Update copyright. 2006-06-07 16:02:55 -04:00
dyn_inst.hh SE/FS: Get rid of includes of config/full_system.hh. 2011-11-18 02:20:22 -08:00
dyn_inst_impl.hh SE/FS: Get rid of includes of config/full_system.hh. 2011-11-18 02:20:22 -08:00
ea_list.cc includes: sort all includes 2011-04-15 10:44:06 -07:00
ea_list.hh includes: sort includes again 2009-05-17 14:34:52 -07:00
front_end.cc Changes to get OzoneCPU to compile once more. 2006-06-22 23:33:26 -04:00
front_end.hh MEM: Introduce the master/slave port sub-classes in C++ 2012-03-30 09:40:11 -04:00
front_end_impl.hh MEM: Introduce the master/slave port sub-classes in C++ 2012-03-30 09:40:11 -04:00
inorder_back_end.cc Update copyright. 2006-06-07 16:02:55 -04:00
inorder_back_end.hh SE/FS: Get rid of FULL_SYSTEM in the CPU directory. 2011-11-18 01:33:28 -08:00
inorder_back_end_impl.hh SE/FS: Get rid of FULL_SYSTEM in the CPU directory. 2011-11-18 01:33:28 -08:00
inst_queue.cc includes: sort all includes 2011-04-15 10:44:06 -07:00
inst_queue.hh includes: sort all includes 2011-04-15 10:44:06 -07:00
inst_queue_impl.hh includes: sort all includes 2011-04-15 10:44:06 -07:00
lsq_unit.cc includes: sort all includes 2011-04-15 10:44:06 -07:00
lsq_unit.hh Faults: Turn off arch/faults.hh 2012-02-07 04:43:21 -08:00
lsq_unit_impl.hh Faults: Turn off arch/faults.hh 2012-02-07 04:43:21 -08:00
lw_back_end.cc Update copyright. 2006-06-07 16:02:55 -04:00
lw_back_end.hh includes: sort all includes 2011-04-15 10:44:06 -07:00
lw_back_end_impl.hh O3/Ozone: Eliminate dead code counting software prefetch insts 2012-03-09 09:59:28 -05:00
lw_lsq.cc includes: sort all includes 2011-04-15 10:44:06 -07:00
lw_lsq.hh MEM: Introduce the master/slave port sub-classes in C++ 2012-03-30 09:40:11 -04:00
lw_lsq_impl.hh MEM: Introduce the master/slave port sub-classes in C++ 2012-03-30 09:40:11 -04:00
null_predictor.hh types: add a type for thread IDs and try to use it everywhere 2009-05-26 09:23:13 -07:00
ozone_base_dyn_inst.cc includes: sort all includes 2011-04-15 10:44:06 -07:00
ozone_impl.hh includes: sort all includes 2011-04-15 10:44:06 -07:00
OzoneChecker.py python: Move more code into m5.util allow SCons to use that code. 2009-09-22 15:24:16 -07:00
OzoneCPU.py MEM: Introduce the master/slave port sub-classes in C++ 2012-03-30 09:40:11 -04:00
rename_table.cc includes: sort all includes 2011-04-15 10:44:06 -07:00
rename_table.hh arch: nuke arch/isa_specific.hh and move stuff to generated config/the_isa.hh 2009-09-23 08:34:21 -07:00
rename_table_impl.hh arch: nuke arch/isa_specific.hh and move stuff to generated config/the_isa.hh 2009-09-23 08:34:21 -07:00
SConscript CheckerCPU: Make CheckerCPU runtime selectable instead of compile selectable 2012-03-09 09:59:27 -05:00
SConsopts cpu_models: get rid of cpu_models.py and move the stuff into SCons 2010-02-26 18:14:48 -08:00
simple_base_dyn_inst.cc includes: sort all includes 2011-04-15 10:44:06 -07:00
simple_cpu_builder.cc SE/FS: Get rid of FULL_SYSTEM in the CPU directory. 2011-11-18 01:33:28 -08:00
simple_impl.hh includes: sort all includes 2011-04-15 10:44:06 -07:00
simple_params.hh SE/FS: Get rid of FULL_SYSTEM in the CPU directory. 2011-11-18 01:33:28 -08:00
SimpleOzoneCPU.py SE/FS: Get rid of FULL_SYSTEM in the CPU directory. 2011-11-18 01:33:28 -08:00
thread_state.hh SE/FS: Get rid of FULL_SYSTEM in the CPU directory. 2011-11-18 01:33:28 -08:00