configs: Add shared_cpu_list to cache directories

The ROCm thunk uses this file instead of the
shared_cpu_map file.

Change-Id: I985512245c9f51106b8347412ed643f78b567b24
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/47524
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Matt Sinclair <mattdsinclair@gmail.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Matt Sinclair <mattdsinclair@gmail.com>
This commit is contained in:
Kyle Roarty
2021-06-30 15:58:44 -05:00
committed by Matt Sinclair
parent 76888a9cca
commit 66cb3e1476

View File

@@ -217,6 +217,8 @@ def register_cache(level, idu_type, size, line_size, assoc, cpus):
file_append((indexdir, 'number_of_sets'), num_sets)
file_append((indexdir, 'physical_line_partition'), '1')
file_append((indexdir, 'shared_cpu_map'), hex_mask(cpus))
file_append((indexdir, 'shared_cpu_list'),
','.join(str(cpu) for cpu in cpus))
def _redirect_paths(options):
# Redirect filesystem syscalls from src to the first matching dests