Repository navigation
risc-v/litex: Update docs for vexriscv invalidate and no-op flush. - #17792
Merged
Merged
Conversation
Per further feedback from Litex community, the vexriscv cache is write-through so no flush is required - therefore, make it a nop. And add a pointer to vexriscv invalidation magic instr docs. Signed-off-by: Justin Erenkrantz <[email protected]>
jerenkrantz
marked this pull request as ready for review
January 7, 2026 15:36
Contributor
Author
|
I see that the CI run failed, but in reviewing the build logs, I'm not sure how this PR could have triggered that failure. Could this be a transient failure or some other CI failure in master? |
Contributor
|
@jerenkrantz the issue is happening in BL602 board: Maybe @lupyuen could know what is happening anyway I will restart the CI to check whether it is a transient issue or not. |
xiaoxiang781216
approved these changes
Jan 7, 2026
Member
|
Sorry @simbit18: Any idea why |
lupyuen
approved these changes
Jan 8, 2026
simbit18
added a commit
to simbit18/nuttx
that referenced
this pull request
Mar 18, 2026
This bl602evb:elf configuration has caused job risc-v-01 to fail on several occasions. riscv-none-elf-ld: cannot find /github/workspace/sources/nuttx/arch/risc-v/src/crt0.o: No such file or directory apache#17792 Added -bl602evb:elf to the risc-v-01.dat file to skip the build. Signed-off-by: simbit18 <[email protected]>
simbit18
added a commit
to simbit18/nuttx
that referenced
this pull request
Mar 18, 2026
This bl602evb:elf configuration has caused job risc-v-01 to fail on several occasions. riscv-none-elf-ld: cannot find /github/workspace/sources/nuttx/arch/risc-v/src/crt0.o: No such file or directory apache#17792 Added -bl602evb:elf to the risc-v-01.dat file to skip the build. Signed-off-by: simbit18 <[email protected]>
linguini1
pushed a commit
that referenced
this pull request
Mar 18, 2026
This bl602evb:elf configuration has caused job risc-v-01 to fail on several occasions. riscv-none-elf-ld: cannot find /github/workspace/sources/nuttx/arch/risc-v/src/crt0.o: No such file or directory #17792 Added -bl602evb:elf to the risc-v-01.dat file to skip the build. Signed-off-by: simbit18 <[email protected]>
pbarada
pushed a commit
to pbarada/nuttx
that referenced
this pull request
Mar 20, 2026
This bl602evb:elf configuration has caused job risc-v-01 to fail on several occasions. riscv-none-elf-ld: cannot find /github/workspace/sources/nuttx/arch/risc-v/src/crt0.o: No such file or directory apache#17792 Added -bl602evb:elf to the risc-v-01.dat file to skip the build. Signed-off-by: simbit18 <[email protected]>
Otpvondoiats
pushed a commit
to Otpvondoiats/nuttx
that referenced
this pull request
Mar 31, 2026
This bl602evb:elf configuration has caused job risc-v-01 to fail on several occasions. riscv-none-elf-ld: cannot find /github/workspace/sources/nuttx/arch/risc-v/src/crt0.o: No such file or directory apache#17792 Added -bl602evb:elf to the risc-v-01.dat file to skip the build. Signed-off-by: simbit18 <[email protected]>
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.
Per further feedback from Litex community on Discord, the vexriscv cache is write-through so no flush is required - therefore, make it a nop.
And add a pointer to vexriscv invalidation magic instruction docs:
https://github.com/SpinalHDL/VexRiscv?tab=readme-ov-file#dbuscachedplugin
Summary
A prior PR #17696 issued an invalidation instruction when asked to flush; but, that's not strictly necessary as the cache is write-through. Therefore, make flush a nop. This matches Zephyr's behavior which implements vexriscv caching:
https://github.com/zephyrproject-rtos/zephyr/pull/97925/files
I believe a nop is slightly better than trying to make flush function conditional upstream, but I'm open to modifying the PR accordingly.
Impact
When asked to flush, NuttX won't invalidate the entire cache.
Testing
I tested with
arty_a7:nshbuild which ran successfully locally.