-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify softfloat interface by removing write_fflags #290
Simplify softfloat interface by removing write_fflags #290
Conversation
e3dbb33
to
9210efb
Compare
9210efb
to
9991278
Compare
9991278
to
2d18a15
Compare
Instead of keeping a mirror register in sync with fflags, just return the new flags.
2d18a15
to
a39b32f
Compare
@billmcspadden-riscv could we get this reviewed somehow? We've spoken about it a couple of times, it doesn't change any behaviour, and I'd like to avoid resolving rebase conflicts for a third time! It's also holding up further improvements. |
I don't feel qualified to review this kind of floating-point code other than to say that simplifying code is a good thing if it's equivalent. Perhaps someone like @ptomsich might be interested in reviewing? |
Here's a more detailed description of the change since it's a bit hard to follow. Consider executing an instruction that uses the softfloat library (some are implemented directly in Sail), e.g.
So what is happening is that the
It's all very convoluted. In essence this PR changes the flow from:
to:
So it changes Since there's no mirror register anymore, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks fine to me.
Please make sure that the fp tests pass before merging to master.
FP test results (all pass):
|
(I don't have permission to merge it btw, just in case you were expecting me to do it!) |
Yes, Tim's explanation was clear and quite helpful. I walked through
the code and matched his explanation with the actual code. Also, he
ran the existing FP tests.
I'm going to go ahead and merge this.
Bill Mc.
…On Wed, Oct 25, 2023 at 8:53 AM Tim Hutt ***@***.***> wrote:
(I don't have permission to merge it btw, just in case you were expecting
me to do it!)
—
Reply to this email directly, view it on GitHub
<#290 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXROLOG4M6MTS4TCYKUOS63YBEKTZAVCNFSM6AAAAAA3FF4BDGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZZGMZDOMJRG4>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
--
Bill McSpadden
Formal Verification Engineer
RISC-V International
mobile: 503-807-9309
|
Thanks! |
Instead of keeping a mirror register in sync with fflags, just return the new flags. This removes the need for
write_fflags()
andupdate_softfloat_fflags()
.