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/syscall_emul.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/syscall_emul.hh')
-rw-r--r-- | sim/syscall_emul.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/syscall_emul.hh b/sim/syscall_emul.hh index 768bc3700..831708a21 100644 --- a/sim/syscall_emul.hh +++ b/sim/syscall_emul.hh @@ -410,8 +410,8 @@ mmapFunc(SyscallDesc *desc, int num, Process *p, ExecContext *xc) if (start == 0) { // user didn't give an address... pick one from our "mmap region" - start = p->mmap_base; - p->mmap_base += RoundUp<Addr>(length, VMPageSize); + start = p->mmap_end; + p->mmap_end += RoundUp<Addr>(length, VMPageSize); } if (!(flags & OS::TGT_MAP_ANONYMOUS)) { |