ruby: Change PerfectCacheMemory::lookup to return pointer
Review Request #2862 - Created May 29, 2015 and submitted
| Information | |
|---|---|
| Joel Hestness | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 10850:b88527f91254 --------------------------- ruby: Change PerfectCacheMemory::lookup to return pointer CacheMemory and DirectoryMemory lookup functions return pointers to entries stored in the memory. Bring PerfectCacheMemory in line with this convention, and clean up SLICC code generation that was in place solely to handle references like that which was returned by PerfectCacheMemory::lookup.
Build and run tests with all protocols.
Please consider this patch in leiu of http://reviews.gem5.org/r/2786/
Posted (June 15, 2015, 3:09 p.m.)
-
src/mem/protocol/MOESI_CMP_token-L2cache.sm (Diff revision 1) -
Hello Joel,
Is it necessary to access the DirEntry by "getDirEntry(addr)" funciton always? Doesn't localDirectory[addr] work anymore?I am trying to quantify the number of changes I need to make in slicc files if I accept this patch in lieu of http://reviews.gem5.org/r/2786/.
Posted (July 31, 2015, 7:24 a.m.)
Bump. AMD is planning to push patches today, but I'm not sure what was decided on the SLICC getPointer patch (http://reviews.gem5.org/r/2786/). Note that this fix to PerfectCacheMemory should make the getPointer patch unnecessary.
Ship It!
