summaryrefslogtreecommitdiff
path: root/sim/syscall_emul.hh
diff options
context:
space:
mode:
authorKevin Lim <ktlim@umich.edu>2005-02-25 18:01:19 -0500
committerKevin Lim <ktlim@umich.edu>2005-02-25 18:01:19 -0500
commitbb41c21d6ae3417cfcbfa1bb5ecc9efbae1950ab (patch)
tree89104e5d242908a1792850ec60b9e0510aa45e3c /sim/syscall_emul.hh
parent5c4714c1a91680a0253f866958a9db80cd8decb2 (diff)
parentd697721f570add1dce1d96f76df09e44bb4b7a99 (diff)
downloadgem5-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.hh4
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)) {