summaryrefslogtreecommitdiff
path: root/sim/process.hh
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2005-02-23 11:47:49 -0500
committerAli Saidi <saidi@eecs.umich.edu>2005-02-23 11:47:49 -0500
commit27a338fe2b822ad5536977fe1ef5f04e21e7231d (patch)
treef8d9146cba4d435a3759e2930f78c2d42b0de4a5 /sim/process.hh
parentaf33e74638ea822fba0ddbc7fddbe7583c61d920 (diff)
parenta84159174afbdf855e370674a4a85ff1ee042095 (diff)
downloadgem5-27a338fe2b822ad5536977fe1ef5f04e21e7231d.tar.xz
Merge zizzer:/bk/m5 into zeep.eecs.umich.edu:/z/saidi/work/m5
--HG-- extra : convert_revision : f149b8ea762d4a83ef76b3bb95f28e0709391ecf
Diffstat (limited to 'sim/process.hh')
-rw-r--r--sim/process.hh6
1 files changed, 4 insertions, 2 deletions
diff --git a/sim/process.hh b/sim/process.hh
index 817ab656c..3bcc65da6 100644
--- a/sim/process.hh
+++ b/sim/process.hh
@@ -93,7 +93,8 @@ class Process : public SimObject
Addr next_thread_stack_base;
// Base of region for mmaps (when user doesn't specify an address).
- Addr mmap_base;
+ Addr mmap_start;
+ Addr mmap_end;
std::string prog_fname; // file name
Addr prog_entry; // entry point (initial PC)
@@ -158,7 +159,8 @@ class Process : public SimObject
{
return ((data_base <= addr && addr < brk_point) ||
((stack_base - 16*1024*1024) <= addr && addr < stack_base) ||
- (text_base <= addr && addr < (text_base + text_size)));
+ (text_base <= addr && addr < (text_base + text_size)) ||
+ (mmap_start <= addr && addr < mmap_end));
}
virtual void syscall(ExecContext *xc) = 0;