summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-10-02 01:32:58 -0700
committerGabe Black <gblack@eecs.umich.edu>2009-10-02 01:32:58 -0700
commit44ceb80c2dd1c4991357292ca27809b5012b9556 (patch)
tree2af9f05d2bd5b0870732d67f72fe7deb4b3805aa /src/arch
parent86f3bec76d1bd14ed11188877dd3039d0bcfd489 (diff)
downloadgem5-44ceb80c2dd1c4991357292ca27809b5012b9556.tar.xz
X86: Make successive anonymous mmaps move down in 32 bit SE mode Linux.
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/x86/linux/linux.hh4
-rw-r--r--src/arch/x86/process.cc2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/arch/x86/linux/linux.hh b/src/arch/x86/linux/linux.hh
index d5bead8f3..a810d4a79 100644
--- a/src/arch/x86/linux/linux.hh
+++ b/src/arch/x86/linux/linux.hh
@@ -190,7 +190,9 @@ class X86Linux32 : public Linux
uint32_t totalhigh; /* Total high memory size */
uint32_t freehigh; /* Available high memory size */
uint32_t mem_unit; /* Memory unit size in bytes */
- } tgt_sysinfo;
+ } tgt_sysinfo;
+
+ static bool mmapGrowsDown() { return true; }
};
#endif
diff --git a/src/arch/x86/process.cc b/src/arch/x86/process.cc
index 4082e568c..f7678443d 100644
--- a/src/arch/x86/process.cc
+++ b/src/arch/x86/process.cc
@@ -184,7 +184,7 @@ I386LiveProcess::I386LiveProcess(LiveProcessParams *params,
// Set up region for mmaps. This was determined empirically and may not
// always be correct.
- mmap_start = mmap_end = (Addr)0xf7ffd000ULL;
+ mmap_start = mmap_end = (Addr)0xf7ffe000ULL;
}
SyscallDesc*