summaryrefslogtreecommitdiff
path: root/sim/process.hh
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 /sim/process.hh
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 'sim/process.hh')
-rw-r--r--sim/process.hh27
1 files changed, 0 insertions, 27 deletions
diff --git a/sim/process.hh b/sim/process.hh
index 476cb8ecf..ffdca819e 100644
--- a/sim/process.hh
+++ b/sim/process.hh
@@ -92,12 +92,6 @@ class Process : public SimObject
// list of all blocked contexts
std::list<WaitRec> waitList;
- Addr text_base; // text (code) segment base
- unsigned text_size; // text (code) size in bytes
-
- Addr data_base; // initialized data segment base
- unsigned data_size; // initialized data + bss size in bytes
-
Addr brk_point; // top of the data segment
Addr stack_base; // stack segment base (highest address)
@@ -116,7 +110,6 @@ class Process : public SimObject
Addr nxm_end;
std::string prog_fname; // file name
- Addr prog_entry; // entry point (initial PC)
Stats::Scalar<> num_syscalls; // number of syscalls executed
@@ -171,26 +164,6 @@ class Process : public SimObject
// look up simulator fd for given target fd
int sim_fd(int tgt_fd);
- // is this a valid instruction fetch address?
- bool validInstAddr(Addr addr)
- {
- return (text_base <= addr &&
- addr < text_base + text_size &&
- !(addr & (sizeof(MachInst)-1)));
- }
-
- // is this a valid address? (used to filter data fetches)
- // note that we just assume stack size <= 16MB
- // this may be alpha-specific
- bool validDataAddr(Addr addr)
- {
- return ((data_base <= addr && addr < brk_point) ||
- (next_thread_stack_base <= addr && addr < stack_base) ||
- (text_base <= addr && addr < (text_base + text_size)) ||
- (mmap_start <= addr && addr < mmap_end) ||
- (nxm_start <= addr && addr < nxm_end));
- }
-
virtual void syscall(ExecContext *xc) = 0;
};