mem: Deduce if cache should forward snoops
Review Request #3260 - Created Dec. 28, 2015 and submitted
Information | |
---|---|
Andreas Hansson | |
gem5 | |
default | |
Reviewers | |
Default | |
Changeset 11310:02553e77fa45 --------------------------- mem: Deduce if cache should forward snoops This patch changes how the cache determines if snoops should be forwarded from the memory side to the CPU side. Instead of having a parameter, the cache now looks at the port connected on the CPU side, and if it is a snooping port, then snoops are forwarded. Less error prone, and less parameters to worry about. The patch also tidies up the CPU classes to ensure that their I-side port is not snooping by removing overrides to the snoop request handler, such that snoop requests will panic via the default MasterPort implement
Posted (Jan. 21, 2016, 9:01 a.m.)
I don't see the "treats any snoops as an error" aspect mentioned in the last line of the description... is that because you're no longer overriding some default implementation that causes an error? I don't see that either, but I didn't look very hard...
-
src/mem/cache/base.cc (Diff revision 1) -
short comment about this being overridden in init() would be nice
Review request changed
Updated (Jan. 21, 2016, 10:07 a.m.)
Description: |
|
||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 2 (+10 -18) |
Ship It!