From d96de69abc02b40e1dec4843a7a7b7e30749f4fa Mon Sep 17 00:00:00 2001 From: Ron Dreslinski Date: Mon, 20 Feb 2006 23:26:39 -0500 Subject: Add in a new translating port that allows syscalls to translate addresses via the page table before accessing the memory port. Other compile issues cleaned up. SConscript: Changes to compile the new Translating Port. Split out memtester and eio support, will rework them back in after first getting a simpleCPU to work arch/alpha/alpha_linux_process.cc: arch/alpha/alpha_tru64_process.cc: sim/syscall_emul.cc: sim/syscall_emul.hh: Changes to use the new translating Port. cpu/exec_context.cc: cpu/exec_context.hh: Create a translating port in each execution context. sim/process.cc: Fix the way we do proxy memory --HG-- extra : convert_revision : 3d33218fe8b425a5d9ce24757f1112b4aa6001fd --- cpu/exec_context.hh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cpu/exec_context.hh') diff --git a/cpu/exec_context.hh b/cpu/exec_context.hh index c40b00e4c..3d40c06f0 100644 --- a/cpu/exec_context.hh +++ b/cpu/exec_context.hh @@ -35,8 +35,8 @@ #include "sim/host.hh" #include "sim/serialize.hh" #include "targetarch/byte_swap.hh" +#include "mem/translating_port.hh" -class Memory; class BaseCPU; #if FULL_SYSTEM @@ -122,6 +122,9 @@ class ExecContext int cpu_id; System *system; + + /// Port that syscalls can use to access memory (provides translation step). + TranslatingPort *port; // Memory *mem; #if FULL_SYSTEM -- cgit v1.2.3