diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2006-03-30 15:59:49 -0500 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2006-03-30 15:59:49 -0500 |
commit | e196d20d9d047a869e1d853fd02077b1d909a576 (patch) | |
tree | 3b45bd223ff1d144af5f94fc9431f01b8a0bad61 /mem/physical.cc | |
parent | 0b2deb2a8897fa857d2b3e1936401c6666fdc728 (diff) | |
download | gem5-e196d20d9d047a869e1d853fd02077b1d909a576.tar.xz |
Make TranslatingPort be a type of Port rather than something special
arch/alpha/arguments.cc:
rather than returning 0, put a panic in... it will actually make us fix
this rather than scratching our respective heads
base/loader/object_file.cc:
base/loader/object_file.hh:
Object loader now takes a port rather than a translating port
cpu/cpu_exec_context.cc:
cpu/cpu_exec_context.hh:
sim/process.cc:
Make translating port a type of port rather than anything special
cpu/simple/cpu.cc:
no need to grab a port from the cpu anymore
mem/physical.cc:
add an additional type of port to physicalmemory called "functional"
Only used for functional accesses (loading binaries/syscall emu)
mem/port.hh:
make readBlok/writeBlob virtual so translating port can do the
translation first
mem/translating_port.cc:
mem/translating_port.hh:
Make TranslatingPort inherit from Port
sim/system.cc:
header file that doesn't exit removed
--HG--
extra : convert_revision : 89b08f6146bba61f5605678d736055feab2fe6f7
Diffstat (limited to 'mem/physical.cc')
-rw-r--r-- | mem/physical.cc | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/mem/physical.cc b/mem/physical.cc index f16b79a8d..046fad868 100644 --- a/mem/physical.cc +++ b/mem/physical.cc @@ -159,6 +159,9 @@ PhysicalMemory::getPort(const std::string &if_name) panic("PhysicalMemory::getPort: additional port requested to memory!"); port = new MemoryPort(this); return port; + } else if (if_name == "functional") { + /* special port for functional writes at startup. */ + return new MemoryPort(this); } else { panic("PhysicalMemory::getPort: unknown port %s requested", if_name); } @@ -332,9 +335,6 @@ PhysicalMemory::unserialize(Checkpoint *cp, const string §ion) BEGIN_DECLARE_SIM_OBJECT_PARAMS(PhysicalMemory) Param<string> file; -#if FULL_SYSTEM - SimObjectParam<MemoryController *> mmu; -#endif Param<Range<Addr> > range; END_DECLARE_SIM_OBJECT_PARAMS(PhysicalMemory) @@ -342,20 +342,12 @@ END_DECLARE_SIM_OBJECT_PARAMS(PhysicalMemory) BEGIN_INIT_SIM_OBJECT_PARAMS(PhysicalMemory) INIT_PARAM_DFLT(file, "memory mapped file", ""), -#if FULL_SYSTEM - INIT_PARAM(mmu, "Memory Controller"), -#endif INIT_PARAM(range, "Device Address Range") END_INIT_SIM_OBJECT_PARAMS(PhysicalMemory) CREATE_SIM_OBJECT(PhysicalMemory) { -#if FULL_SYSTEM - if (mmu) { - return new PhysicalMemory(getInstanceName(), range, mmu, file); - } -#endif return new PhysicalMemory(getInstanceName()); } |