[RISCV][Lifting] Implement the F and D extensions (floating and double floating point) in RISC-V, implement CSR instructions for fflags#6374
Draft
moste00 wants to merge 9 commits into
Conversation
This was referenced May 17, 2026
moste00
force-pushed
the
feature/riscv_lifting_float
branch
2 times, most recently
from
May 24, 2026 13:15
87235a1 to
60b4ed6
Compare
moste00
force-pushed
the
feature/riscv_lifting_float
branch
from
June 16, 2026 19:58
6626cb1 to
82f5aff
Compare
…riants of the instructions in it for 32-bit arch variant only, and add some tests
…ions like reading CSRs to implement fflags reading and writing
moste00
force-pushed
the
feature/riscv_lifting_float
branch
from
June 17, 2026 00:26
82f5aff to
fedf48a
Compare
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.
Your checklist for this pull request
RZ_APIfunction and struct this PR changes.RZ_API).Detailed description
Continues #6373. Implements the F and D extensions of RISC-V.
Claude Code CLI was used to write some of the code here, I take full responsiblity for all code in this PR as fully mine.
Test plan
As with the I (integer) and M extensions, the F and D extensions were tested using tracetesting. For now, I didn't run any real-world binaries like
lsorgrepyet, but I ran simple minimal binaries and made sure no execution mismatches between the lifting and usermode QEMU occur.The ultimate goal before merging this PR is that arbitrary ELF binaries like GNU utilities would run with no machine state mismatches betweeen QEMU and Rizin.
Closing issues
PR Stack Structure
This PR is the fourth of a 4-PR stack that lifts the IMAFD RISC-V archiecture plus some privileged instructions.
The following is a table for ease of navigation from any PR to any other, please filter by the commit(s) mentioned in the table when reviewing the diff in the "Files Changed" tab to avoid the noise of the base branches.
Because it's painful to maintain this stack manually with no Github or other tooling support, I won't grow it any further until one of those 4 PRs gets merged.
Depends-on: #6373