Merge zizzer.eecs.umich.edu:/z/m5/Bitkeeper/m5
[gem5.git] / sim / process.hh
index 1c6c6b3fb1acc04535b6e48d607a5b8a3b8c9abe..ef54ced787b99ce8fdc3d0f4acf7bdafdf9e2bf8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2001-2004 The Regents of The University of Michigan
+ * Copyright (c) 2001-2005 The Regents of The University of Michigan
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -34,7 +34,9 @@
 // when there's no OS: thus there's no reason to use it in FULL_SYSTEM
 // mode when we do have an OS.
 //
-#ifndef FULL_SYSTEM
+#include "config/full_system.hh"
+
+#if !FULL_SYSTEM
 
 #include <vector>
 
@@ -163,11 +165,7 @@ class Process : public SimObject
     bool validDataAddr(Addr addr)
     {
         return ((data_base <= addr && addr < brk_point) ||
-#ifdef FULLSYSTEM
-                ((stack_base - 16*1024*1024) <= addr && addr < stack_base) ||
-#else
                 (next_thread_stack_base <= addr && addr < stack_base) ||
-#endif
                 (text_base <= addr && addr < (text_base + text_size)) ||
                 (mmap_start <= addr && addr < mmap_end) ||
                 (nxm_start <= addr && addr < nxm_end));