summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2006-03-12 16:01:41 -0500
committerSteve Reinhardt <stever@eecs.umich.edu>2006-03-12 16:01:41 -0500
commit37c860d3345b6fcc45dc609fd9bb7fe7e5136142 (patch)
tree477a973bcec0aedc1e44a18580a733d72796d675 /cpu
parent84a6044f31b9e2209bd49ae1d184289a0fa947bd (diff)
downloadgem5-37c860d3345b6fcc45dc609fd9bb7fe7e5136142.tar.xz
Get rid of validInstAddr() & validDataAddr().
SE mode can now use page tables to determine which addresses are valid. sim/process.cc: sim/process.hh: Get rid of validInstAddr() & validDataAddr(). SE mode can now use page tables to determine which addresses are valid. Also get rid of some Process object fields that were only used by those functions. --HG-- extra : convert_revision : 74a25c0c2453bfc598eedacdbfccea1cf6493ba6
Diffstat (limited to 'cpu')
-rw-r--r--cpu/cpu_exec_context.hh8
-rw-r--r--cpu/exec_context.hh4
2 files changed, 0 insertions, 12 deletions
diff --git a/cpu/cpu_exec_context.hh b/cpu/cpu_exec_context.hh
index 764c8fab3..509583d65 100644
--- a/cpu/cpu_exec_context.hh
+++ b/cpu/cpu_exec_context.hh
@@ -233,8 +233,6 @@ class CPUExecContext
AlphaDTB *getDTBPtr() { return dtb; }
- bool validInstAddr(Addr addr) { return true; }
- bool validDataAddr(Addr addr) { return true; }
int getInstAsid() { return regs.instAsid(); }
int getDataAsid() { return regs.dataAsid(); }
@@ -256,12 +254,6 @@ class CPUExecContext
#else
Process *getProcessPtr() { return process; }
- bool validInstAddr(Addr addr)
- { return process->validInstAddr(addr); }
-
- bool validDataAddr(Addr addr)
- { return process->validDataAddr(addr); }
-
int getInstAsid() { return asid; }
int getDataAsid() { return asid; }
diff --git a/cpu/exec_context.hh b/cpu/exec_context.hh
index 3c57ad907..d102757e6 100644
--- a/cpu/exec_context.hh
+++ b/cpu/exec_context.hh
@@ -143,8 +143,6 @@ class ExecContext
virtual int getThreadNum() = 0;
- virtual bool validInstAddr(Addr addr) = 0;
- virtual bool validDataAddr(Addr addr) = 0;
virtual int getInstAsid() = 0;
virtual int getDataAsid() = 0;
@@ -309,8 +307,6 @@ class ProxyExecContext : public ExecContext
int getThreadNum() { return actualXC->getThreadNum(); }
- bool validInstAddr(Addr addr) { return actualXC->validInstAddr(addr); }
- bool validDataAddr(Addr addr) { return actualXC->validDataAddr(addr); }
int getInstAsid() { return actualXC->getInstAsid(); }
int getDataAsid() { return actualXC->getDataAsid(); }