diff options
author | John Alsop <johnathan.alsop@amd.com> | 2017-04-20 11:26:39 -0400 |
---|---|---|
committer | John Alsop <johnathan.alsop@amd.com> | 2019-06-05 13:59:00 +0000 |
commit | f5cf6d5f5ef8df0fedcba9d3cf3c16d76a6dceae (patch) | |
tree | 57e09482a3257960d5b8008147f65ad200783ca7 /SConstruct | |
parent | 0c0cf48e3082ba41005b5d0f56d377e432b9283e (diff) | |
download | gem5-f5cf6d5f5ef8df0fedcba9d3cf3c16d76a6dceae.tar.xz |
mem-ruby: Enable set size increase
Add NUMBER_BITS_PER_SET environment variable to control
the size of the bitmask in Set.hh (default=64).
Necessary for configs which require >64 instances of a given
machine type. This can be set in the build_opts file, e.g.
by adding the following line:
NUMBER_BITS_PER_SET = <number>
Change-Id: I314a3cadca8ce975fcf4a60d9022494751688e88
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18968
Reviewed-by: Tiago Mück <tiago.muck@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'SConstruct')
-rwxr-xr-x | SConstruct | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct index 53b8c9dea..28999a5b5 100755 --- a/SConstruct +++ b/SConstruct @@ -1013,14 +1013,17 @@ sticky_vars.AddVariables( EnumVariable('PROTOCOL', 'Coherence protocol for Ruby', 'None', all_protocols), EnumVariable('BACKTRACE_IMPL', 'Post-mortem dump implementation', - backtrace_impls[-1], backtrace_impls) + backtrace_impls[-1], backtrace_impls), + ('NUMBER_BITS_PER_SET', 'Max elements in set (default 64)', + 64), ) # These variables get exported to #defines in config/*.hh (see src/SConscript). export_vars += ['USE_FENV', 'SS_COMPATIBLE_FP', 'TARGET_ISA', 'TARGET_GPU_ISA', 'CP_ANNOTATE', 'USE_POSIX_CLOCK', 'USE_KVM', 'USE_TUNTAP', 'PROTOCOL', 'HAVE_PROTOBUF', 'HAVE_VALGRIND', - 'HAVE_PERF_ATTR_EXCLUDE_HOST', 'USE_PNG'] + 'HAVE_PERF_ATTR_EXCLUDE_HOST', 'USE_PNG', + 'NUMBER_BITS_PER_SET'] ################################################### # |