diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2005-02-23 11:47:49 -0500 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2005-02-23 11:47:49 -0500 |
commit | 27a338fe2b822ad5536977fe1ef5f04e21e7231d (patch) | |
tree | f8d9146cba4d435a3759e2930f78c2d42b0de4a5 /sim/syscall_emul.hh | |
parent | af33e74638ea822fba0ddbc7fddbe7583c61d920 (diff) | |
parent | a84159174afbdf855e370674a4a85ff1ee042095 (diff) | |
download | gem5-27a338fe2b822ad5536977fe1ef5f04e21e7231d.tar.xz |
Merge zizzer:/bk/m5 into zeep.eecs.umich.edu:/z/saidi/work/m5
--HG--
extra : convert_revision : f149b8ea762d4a83ef76b3bb95f28e0709391ecf
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)) { |