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/syscall_emul.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/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)) { |