diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2006-03-30 18:06:00 -0500 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2006-03-30 18:06:00 -0500 |
commit | 5936c79ba0f3fd29ef2bbf41fcaddc78fcd9c75c (patch) | |
tree | 0497503600b01e23dd60a2802509d6bb48a27e99 /cpu/cpu_exec_context.cc | |
parent | e196d20d9d047a869e1d853fd02077b1d909a576 (diff) | |
download | gem5-5936c79ba0f3fd29ef2bbf41fcaddc78fcd9c75c.tar.xz |
Add a functional port that is used to load the original binaries in FS
SE mode now has a port that goes to whatever toplevel mem object the
CPU sees that does the appropriate translation for syscall emulation
SConscript:
translating port is a syscall emu only source
arch/alpha/system.cc:
base/loader/object_file.cc:
base/loader/object_file.hh:
Use the new functional port to write the binaries into memory
cpu/cpu_exec_context.cc:
cpu/cpu_exec_context.hh:
cpu/simple/cpu.cc:
We aren't always going to be writing straight to memory with syscalls
support writing to a cache
mem/port.hh:
Add a simple unidirectional functional port that panics on any incoming requests
mem/translating_port.hh:
make translating port inherit from the simple port
sim/system.cc:
sim/system.hh:
Add a functional port that is used to load the original binaries
--HG--
extra : convert_revision : 9096866d0b23e3aceea68394abb76e63c0f8fd8d
Diffstat (limited to 'cpu/cpu_exec_context.cc')
-rw-r--r-- | cpu/cpu_exec_context.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu/cpu_exec_context.cc b/cpu/cpu_exec_context.cc index f6edf4b13..a3e6cc432 100644 --- a/cpu/cpu_exec_context.cc +++ b/cpu/cpu_exec_context.cc @@ -80,7 +80,7 @@ CPUExecContext::CPUExecContext(BaseCPU *_cpu, int _thread_num, System *_sys, } #else CPUExecContext::CPUExecContext(BaseCPU *_cpu, int _thread_num, - Process *_process, int _asid) + Process *_process, int _asid, MemObject* memobj) : _status(ExecContext::Unallocated), cpu(_cpu), thread_num(_thread_num), cpu_id(-1), lastActivate(0), lastSuspend(0), process(_process), asid(_asid), @@ -89,7 +89,7 @@ CPUExecContext::CPUExecContext(BaseCPU *_cpu, int _thread_num, /* Use this port to for syscall emulation writes to memory. */ Port *mem_port; port = new TranslatingPort(process->pTable, false); - mem_port = process->system->physmem->getPort("functional"); + mem_port = memobj->getPort("functional"); mem_port->setPeer(port); port->setPeer(mem_port); |