cpu: Tidy up the MemTest and make false sharing more obvious
Review Request #2611 - Created Jan. 21, 2015 and submitted
| Information | |
|---|---|
| Andreas Hansson | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 10671:94bc71e83168 --------------------------- cpu: Tidy up the MemTest and make false sharing more obvious The MemTest class really only tests false sharing, and as such there was a lot of old cruft that could be removed. This patch cleans up the tester, and also makes it more clear what the assumptions are. As part of this simplification the reference functional memory is also removed. The regression configs using MemTest are updated to reflect the changes, and the stats will be bumped in a separate patch. The example config will be updated in a separate patch due to more extensive re-work. In a follow-on patch a new tester will be introduced that uses the MemChecker to implement true sharing.
Posted (Jan. 30, 2015, 1:47 p.m.)
-
src/cpu/testers/memtest/MemTest.py (Diff revision 1) -
Are you sure this should be dropped? I think the coherence protocols that provide a dma controller need this for testing.
Looks fine to me. In the abstract I agree with Nilay that DMA operations need to be included in the memory tester; we're having some internal trouble with DMA operations in Ruby right now in fact. Concretely, though, I don't see what the 'dma' option in this tester really does other than issue requests of a different size, so I don't see how it actually supported that abstract goal.
