syscall_emul: move mmapGrowsDown() to LiveProcess
[gem5.git] / src / sim / process.hh
index df007c9f2a0d3c33f832f817c445b7675a4a8386..72f789ec735abd78b798fa62df78bc5a97dccfda 100644 (file)
@@ -107,9 +107,13 @@ class Process : public SimObject
     Addr next_thread_stack_base;
 
     // Base of region for mmaps (when user doesn't specify an address).
-    Addr mmap_start;
     Addr mmap_end;
 
+    // Does mmap region grow upward or downward from mmap_end?  Most
+    // platforms grow downward, but a few (such as Alpha) grow upward
+    // instead, so they can override thie method to return false.
+    virtual bool mmapGrowsDown() const { return true; }
+
     // Base of region for nxm data
     Addr nxm_start;
     Addr nxm_end;