ruby: speed up function used for cache walks
Review Request #2802 - Created May 11, 2015 and submitted
| Information | |
|---|---|
| Tony Gutierrez | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 10831:76608773b16d --------------------------- ruby: speed up function used for cache walks This patch adds a few helpful functions that allow .sm files to directly invalidate all cache blocks using a trigger queue rather than rely on each individual cache block to be invalidated via requests from the mandatory queue.
Mark all these functions as const.
-
src/mem/ruby/structures/CacheMemory.hh (Diff revision 1) -
Can you add a comment here describing what this function does? I don't find it self explanatory from the function name/parameters.
E.g., what is the "idx" parameter? What is the min/max value (0 to getNumBlocks()-1, I assume)? Also, could you specify the mapping from idx to way/set (in the comment)? It's in the code, but the code is not easily parsable, at least to me.
Also, are you really getting the index, or are you getting the address at a specific index? Maybe a more precise name is needed as well.
Description: |
|
|||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 2 (+34) |
Ship It!
Description: |
|
|||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 3 (+34) |
