Implement cache flush using fence.i for CVA6#2405
Merged
enjoy-digital merged 1 commit intoenjoy-digital:masterfrom Jan 27, 2026
Merged
Implement cache flush using fence.i for CVA6#2405enjoy-digital merged 1 commit intoenjoy-digital:masterfrom
enjoy-digital merged 1 commit intoenjoy-digital:masterfrom
Conversation
Replaced empty flush_cpu_icache and flush_cpu_dcache functions with implementations that use the 'fence.i' instruction, which flushes both instruction and data caches on CVA6. This addresses previous FIXME comments and ensures proper cache flushing.
Owner
|
Thanks @helium729! |
|
I tried this in a Nexys A7 100T at 25, 50, 75 and 100 MHz and it does not work (always memory errors, both the automatic test and the 'mem_test' command). @helium729 , if this is supposed to fix #2121 please explain in which board this was tested and how. Thanks |
Contributor
Author
|
I will look into this |
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.
Replaced empty flush_cpu_icache and flush_cpu_dcache functions with implementations that use the 'fence.i' instruction, which flushes both instruction and data caches on CVA6. This addresses previous FIXME comments and ensures proper cache flushing.
Fixing #2121