projects
/
gem5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix the system clock at 1THz making 1 simulation tick = 1 ps
[gem5.git]
/
base
/
fast_alloc.hh
diff --git
a/base/fast_alloc.hh
b/base/fast_alloc.hh
index 7d699abd1b1c5583c0ddea8cbb2b5a2e4e087c3a..54e35f8e0eeeecb7e92404cb3cf5c8537e25ad70 100644
(file)
--- a/
base/fast_alloc.hh
+++ b/
base/fast_alloc.hh
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (c) 200
3
The Regents of The University of Michigan
+ * Copyright (c) 200
0-2001, 2003-2005
The Regents of The University of Michigan
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@
-68,6
+68,15
@@
// (by bucket).
// #define FAST_ALLOC_STATS
// (by bucket).
// #define FAST_ALLOC_STATS
+#include "config/no_fast_alloc.hh"
+
+#if NO_FAST_ALLOC
+
+class FastAlloc {
+};
+
+#else
+
class FastAlloc {
public:
class FastAlloc {
public:
@@
-200,4
+209,6
@@
void FastAlloc::operator delete(void *p, size_t sz)
deallocate(p, sz);
}
deallocate(p, sz);
}
+#endif // NO_FAST_ALLOC
+
#endif // __FAST_ALLOC_H__
#endif // __FAST_ALLOC_H__