summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorSteve Reinhardt <steve.reinhardt@amd.com>2011-03-18 11:47:11 -0700
committerSteve Reinhardt <steve.reinhardt@amd.com>2011-03-18 11:47:11 -0700
commit38aa50bb49ac8621fe9cc6a85ad6f39a61c76bb3 (patch)
tree674010fc34eb5c0afe027434e3134859df8e37bd /SConstruct
parent6daf44dae6dbe931e2a1493cd0e33ca9732509dd (diff)
downloadgem5-38aa50bb49ac8621fe9cc6a85ad6f39a61c76bb3.tar.xz
base: disable FastAlloc in debug builds by default
FastAlloc's reuse policies can mask allocation bugs, so we typically want it disabled when debugging. Set FORCE_FAST_ALLOC to enable even when debugging, and set NO_FAST_ALLOC to disable even in non-debug builds.
Diffstat (limited to 'SConstruct')
-rwxr-xr-xSConstruct6
1 files changed, 3 insertions, 3 deletions
diff --git a/SConstruct b/SConstruct
index 3033348cd..eee1c78e8 100755
--- a/SConstruct
+++ b/SConstruct
@@ -822,8 +822,8 @@ sticky_vars.AddVariables(
sorted(n for n,m in CpuModel.dict.iteritems() if m.default),
sorted(CpuModel.list)),
BoolVariable('NO_FAST_ALLOC', 'Disable fast object allocator', False),
- BoolVariable('FAST_ALLOC_DEBUG', 'Enable fast object allocator debugging',
- False),
+ BoolVariable('FORCE_FAST_ALLOC',
+ 'Enable fast object allocator, even for m5.debug', False),
BoolVariable('FAST_ALLOC_STATS', 'Enable fast object allocator statistics',
False),
BoolVariable('EFENCE', 'Link with Electric Fence malloc debugger',
@@ -844,7 +844,7 @@ sticky_vars.AddVariables(
# These variables get exported to #defines in config/*.hh (see src/SConscript).
export_vars += ['FULL_SYSTEM', 'USE_FENV', 'USE_MYSQL',
- 'NO_FAST_ALLOC', 'FAST_ALLOC_DEBUG', 'FAST_ALLOC_STATS',
+ 'NO_FAST_ALLOC', 'FORCE_FAST_ALLOC', 'FAST_ALLOC_STATS',
'SS_COMPATIBLE_FP', 'USE_CHECKER', 'TARGET_ISA', 'CP_ANNOTATE',
'USE_POSIX_CLOCK' ]