Ruby: Fix hard-coded block size assumption for multiple directories
Review Request #1366 - Created Aug. 22, 2012 and submitted
| Information | |
|---|---|
| Jason Lowe-Power | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 9167:2bac206316cc --------------------------- Ruby: Fix hard-coded block size assumption for multiple directories
From Joel: Booted Linux with varying numbers of directories (1,2,4), varying probe filter and directory configs (--pf-on and --dir-on), and varying NUMA high bit settings (--numa_high_bit = 9, 12, 18, 24, 30). All successfully boot Linux.
Posted (Sept. 10, 2012, 12:58 p.m.)
-
configs/ruby/MOESI_hammer.py (Diff revision 1) -
All of this probe filter setup should be predicated on whether the probe filter is actually enabled (options.pf_on = True). If the probe filter is NOT enabled, then it should be possible to set options.numa_high_bit within the pf_bits range (not currently possible because of this assertion). Trying to fix up the pf_start_bit without first checking whether the probe filter is enabled will probably cause redundant changes down the road. Is anyone actually using the probe filter?
-
configs/ruby/Ruby.py (Diff revision 1) -
Is this distinction necessary? When the number of directory bits is 0, the DirectoryMemory doesn't use the numa_high_bit (mapAddressToDirectoryVersion and mapAddressToLocalIdx). Eliminating this if-statement and just setting numa_bit = block_size_bits + dir_bits - 1 would simplify the code and make it easier to debug directory mapping mods.
Review request changed
Updated (Sept. 12, 2012, 5:15 a.m.)
Diff: |
Revision 2 (+10 -10) |
|---|
Review request changed
Updated (Sept. 12, 2012, 5:16 a.m.)
Testing Done: |
|
|---|
Ship It!
