gem5/mem
Ron Dreslinski 9e3d79694c Move to a model with a unified request object.
Constructor takes a bool to signify that it is either a cpu_request or not a cpu_request.
When accedding variables of a cpu_request it asserts that it is a cpu_request.
It also asserts that a value being read has been written at some point in time prior (not gaurnteeing it is up to date, but it was at least written before read).

There is also a isCpuReq() function to determine if this is a cpu_request.  It should be called before accesing a cpu_request only variable.

SConscript:
    Add compilation support for request.cc
arch/alpha/tlb.cc:
arch/alpha/tlb.hh:
cpu/cpu_exec_context.hh:
cpu/exec_context.hh:
cpu/simple/cpu.cc:
cpu/simple/cpu.hh:
dev/io_device.cc:
mem/page_table.cc:
mem/page_table.hh:
mem/port.cc:
    Update for unified request object and accessor functions.
mem/request.hh:
    Remove CpuRequest, make it a unified object.  Make variables private with accessor functions.

    May want to move things from .cc file into header (usually a assert() and either returning a value, or writting two).

--HG--
extra : convert_revision : f1e45cc490dadc7a418634539b03c3e72684a6e3
2006-04-07 15:54:48 -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
bus.cc fixes for new memory system 2006-04-06 00:51:46 -04:00
bus.hh fixes for newmem 2006-04-06 14:57:51 -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.hh move stuff around so PageShift is defined before it is needed 2006-03-29 17:37:25 -05:00
page_table.cc Move to a model with a unified request object. 2006-04-07 15:54:48 -04:00
page_table.hh Move to a model with a unified request object. 2006-04-07 15:54:48 -04:00
physical.cc fixes for newmem 2006-04-06 14:57:51 -04:00
physical.hh fixes for new memory system 2006-04-06 00:51:46 -04:00
port.cc Move to a model with a unified request object. 2006-04-07 15:54:48 -04:00
port.hh fixes for new memory system 2006-04-06 00:51:46 -04:00
request.hh Move to a model with a unified request object. 2006-04-07 15:54:48 -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 fixes for new memory system 2006-04-06 00:51:46 -04:00