Fix the system clock at 1THz making 1 simulation tick = 1 ps
[gem5.git] / base / fast_alloc.hh
index 7d699abd1b1c5583c0ddea8cbb2b5a2e4e087c3a..54e35f8e0eeeecb7e92404cb3cf5c8537e25ad70 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003 The Regents of The University of Michigan
+ * Copyright (c) 2000-2001, 2003-2005 The Regents of The University of Michigan
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
 // (by bucket).
 // #define FAST_ALLOC_STATS
 
+#include "config/no_fast_alloc.hh"
+
+#if NO_FAST_ALLOC
+
+class FastAlloc {
+};
+
+#else
+
 class FastAlloc {
   public:
 
@@ -200,4 +209,6 @@ void FastAlloc::operator delete(void *p, size_t sz)
     deallocate(p, sz);
 }
 
+#endif // NO_FAST_ALLOC
+
 #endif // __FAST_ALLOC_H__