Skip to content

Fix Issue #570: Unique if condition for impl_replacement_cache_fill#571

Open
ChristopherThomasHill wants to merge 1 commit intoChampSim:masterfrom
ChristopherThomasHill:bugfix/570-Update-Replacement-State
Open

Fix Issue #570: Unique if condition for impl_replacement_cache_fill#571
ChristopherThomasHill wants to merge 1 commit intoChampSim:masterfrom
ChristopherThomasHill:bugfix/570-Update-Replacement-State

Conversation

@ChristopherThomasHill
Copy link
Copy Markdown

This is a first attempt at resolving Issue #570. It does have some code repetition issues, but does resolve the main bug with it not calling update_replacement_state() for misses when replacement_cache_fill() isn't defined.

@ChristopherThomasHill ChristopherThomasHill marked this pull request as ready for review January 9, 2025 22:11
@maccoymerrell
Copy link
Copy Markdown
Contributor

This looks like it should resolve the issue.
Do you think you could add a change to our existing tests that would catch this bug you are describing?
Test 442-replacement-interface.cc or 443-replacement-interaface-selection.cc would probably be good candidates, and only need minor additions to do this.

@adeelurehman
Copy link
Copy Markdown

Finally getting through the backlog, looks good. Go ahead and merge it in.

@ngober
Copy link
Copy Markdown
Collaborator

ngober commented Feb 26, 2025

I don't want to merge this until the tests are written. Adding tests will ensure this issue doesn't come up again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants