gem5/mem
Steve Reinhardt 309e1d8193 Split SimpleCPU into two different models, AtomicSimpleCPU and
TimingSimpleCPU, which use atomic and timing memory accesses
respectively.  Common code is factored into the BaseSimpleCPU class.
AtomicSimpleCPU includes an option (simulate_stalls) to add delays
based on the estimated latency reported by the atomic accesses.
Plain old "SimpleCPU" is gone; I have not updated all the config
files (just test/test.py).
Also fixes to get timing accesses working in new memory model and
to get split-phase memory instruction definitions working with
new memory model as well.

arch/alpha/isa/main.isa:
    Need to include packet_impl.h for functions that use Packet objects.
arch/alpha/isa/mem.isa:
    Change completeAcc() methods to take Packet object pointers.
    Also split out StoreCond template for completeAcc(), since
    that's the only one that needs write_result and we get an
    unused variable warning if we always have it in there.
build/SConstruct:
    Update list of recognized CPU model names.
configs/test/test.py:
    Change SimpleCPU to AtomicSimpleCPU.
cpu/SConscript:
    Define sources for new CPU models.
    Add split memory access methods to CPU model signatures.
cpu/cpu_models.py:
cpu/static_inst.hh:
    Define new CPU models.
cpu/simple/base.cc:
cpu/simple/base.hh:
    Factor out pieces specific to Atomic or Timing models.
mem/bus.cc:
    Bus needs to be able to route timing packets based on explicit dest
    so responses can get back to requester.  Set dest to Packet::Broadcast
    to indicate that dest should be derived from address.
    Also set packet src field based on port from which packet is sent.
mem/bus.hh:
    Set packet src field based on port from which packet is sent.
mem/packet.hh:
    Define Broadcast destination address to indicate that
    packet should be routed based on address.
mem/physical.cc:
    Set packet dest on response so packet is routed
    back to requester properly.
mem/port.cc:
    Flag blob packets as Broadcast.
python/m5/objects/PhysicalMemory.py:
    Change default latency to be 1 cycle.

--HG--
rename : cpu/simple/cpu.cc => cpu/simple/base.cc
rename : cpu/simple/cpu.hh => cpu/simple/base.hh
extra : convert_revision : e9646af6406a20c8c605087936dc4683375c2132
2006-05-16 17:36:50 -04:00
..
cache/prefetch Remove unneeded header files. 2006-03-14 18:03:34 -05:00
config Don't forget to check in the needed header file for the conditional prefetch building. 2006-03-16 11:34:19 -05:00
bridge.cc add a bridge object, modify bus object to be able to connect to other buses or bridges without panicing 2006-04-28 15:37:48 -04:00
bridge.hh add a bridge object, modify bus object to be able to connect to other buses or bridges without panicing 2006-04-28 15:37:48 -04:00
bus.cc Split SimpleCPU into two different models, AtomicSimpleCPU and 2006-05-16 17:36:50 -04:00
bus.hh Split SimpleCPU into two different models, AtomicSimpleCPU and 2006-05-16 17:36:50 -04:00
mem_object.cc Replace Memory with MemObject; no need for two different levels of hierarchy there. 2006-03-12 17:21:59 -05:00
mem_object.hh Add the bus and connector objects to scons 2006-03-26 21:44:22 -05:00
packet.cc move code from packet.hh to packet.cc and packet_impl.hh 2006-05-01 18:53:28 -04:00
packet.hh Split SimpleCPU into two different models, AtomicSimpleCPU and 2006-05-16 17:36:50 -04:00
page_table.cc Finally MIPS does hello world! 2006-04-10 12:23:17 -04:00
page_table.hh Take out flags parameter (used for no align fault) 2006-04-10 12:40:07 -04:00
physical.cc Split SimpleCPU into two different models, AtomicSimpleCPU and 2006-05-16 17:36:50 -04:00
physical.hh make ide disk work for newmem 2006-04-20 17:14:30 -04:00
port.cc Split SimpleCPU into two different models, AtomicSimpleCPU and 2006-05-16 17:36:50 -04:00
port.hh fixes for se 2006-04-29 17:37:25 -04:00
request.hh change packet: reset() to resetMin() resetAll() which reset the minium 2006-04-17 14:55:15 -04:00
translating_port.cc Make TranslatingPort be a type of Port rather than something special 2006-03-30 15:59:49 -05:00
translating_port.hh Add a functional port that is used to load the original binaries in FS 2006-03-30 18:06:00 -05:00
vport.cc fixes for new memory system 2006-04-06 00:51:46 -04:00
vport.hh fs now gets to the point where it would really like a filesystem. 2006-04-12 17:46:25 -04:00