diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2005-02-23 11:45:25 -0500 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2005-02-23 11:45:25 -0500 |
commit | 9ebeb9b2de34673fffce06baf1420f85993ba806 (patch) | |
tree | 00803bde8781393696f513c2f940a2d3b2ae8f43 /sim/process.hh | |
parent | 2298e2ba481d6cdba020a405bd878fe4f554b658 (diff) | |
download | gem5-9ebeb9b2de34673fffce06baf1420f85993ba806.tar.xz |
Added mmap start and end so detailed CPU can know if an access is
in a mmaped region
--HG--
extra : convert_revision : e4ee0520c84d94a0d2e804d02035228766abe71f
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 bb4829875..6c7bc4222 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) @@ -156,7 +157,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; |