Skip to content
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

RISC-V: CT and doit are wrong #1013

Open
eponier opened this issue Jan 21, 2025 · 0 comments
Open

RISC-V: CT and doit are wrong #1013

eponier opened this issue Jan 21, 2025 · 0 comments

Comments

@eponier
Copy link
Contributor

eponier commented Jan 21, 2025

We modelled RISC-V with every instruction being both CT and doit. Now that we have DIV and REM, this is certainly false.

This is not hard to do but I don't have the time right now. In the RISC-V spec, there is something called Zkt which, if mentioned by a device, means that the instructions listed are guaranteed to be CT. There is no flag, unlike x86 and ARM.

There is also a notion of hints, encoded with instructions whose destination register is x0. The instruction can be in Zkt (e.g. it can be ADDI). One must just check that this is not problematic for our modeling of CT and doit.

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

No branches or pull requests

2 participants