feat(Prefetcher): add CDP prefetcher in L2 - #15
Open
ChrisYzcc wants to merge 46 commits into
Open
Conversation
ChrisYzcc
force-pushed
the
feat-l2-cdp
branch
2 times, most recently
from
July 14, 2026 04:34
3c0677c to
7713c73
Compare
ChrisYzcc
marked this pull request as ready for review
July 19, 2026 06:16
ChrisYzcc
requested review from
Ivyfeather,
Kumonda221-CrO3,
Maxpicca-Li and
linjuanZ
as code owners
July 19, 2026 06:16
Ma-YX
reviewed
Jul 21, 2026
linjuanZ
requested changes
Jul 21, 2026
Ma-YX
reviewed
Jul 21, 2026
Ma-YX
reviewed
Jul 21, 2026
Ma-YX
reviewed
Jul 21, 2026
linjuanZ
reviewed
Jul 22, 2026
linjuanZ
requested changes
Jul 22, 2026
linjuanZ
requested changes
Jul 22, 2026
…h requests; let CSR signal control CDP enable
Consolidate CDP detect pipeline payloads into a width-parameterized task bundle. Track VPN main-entry and sub-entry validity separately, initialize metadata on allocation, and simplify pipeline register handling.
Ma-YX
reviewed
Jul 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements a Content-Directed Prefetcher (CDP) in the L2 cache to improve performance for pointer-chasing workloads.
Main changes
coupledL2/prefetch/CDP.scala).MainPipe.MainPipe, and classify prefetch training destination types usingis_cdp_trainandis_other_trainin thePrefetchTrainbundle.pfDepthfield to the cacheline metadata.PrefetcherMonitorto support accuracy-based dynamic tuning for CDP (currently disabled).PrefetchTrainrequest buffer for each prefetcher inprefetch/Prefetcher.scala.prefetch/Prefetcher.scala.Performance
On the SPEC CPU2006 GCC15 0.3c checkpoint suite, CDP achieves: