diff options
author | Kevin Lim <ktlim@umich.edu> | 2005-02-25 18:01:19 -0500 |
---|---|---|
committer | Kevin Lim <ktlim@umich.edu> | 2005-02-25 18:01:19 -0500 |
commit | bb41c21d6ae3417cfcbfa1bb5ecc9efbae1950ab (patch) | |
tree | 89104e5d242908a1792850ec60b9e0510aa45e3c /sim/process.hh | |
parent | 5c4714c1a91680a0253f866958a9db80cd8decb2 (diff) | |
parent | d697721f570add1dce1d96f76df09e44bb4b7a99 (diff) | |
download | gem5-bb41c21d6ae3417cfcbfa1bb5ecc9efbae1950ab.tar.xz |
Merge ktlim@zizzer.eecs.umich.edu:/bk/m5
into zamp.eecs.umich.edu:/z/ktlim2/m5
--HG--
extra : convert_revision : ba556bbc93275fcd920a0529383fd480bb7218de
Diffstat (limited to 'sim/process.hh')
-rw-r--r-- | sim/process.hh | 6 |
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; |