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

Value of rs1 during CSR*I instructions #40

Open
olofk opened this issue May 14, 2020 · 2 comments
Open

Value of rs1 during CSR*I instructions #40

olofk opened this issue May 14, 2020 · 2 comments

Comments

@olofk
Copy link

olofk commented May 14, 2020

I'm a bit confused whether this is an issue with riscv-formal or if I'm just holding it wrong. The issue I see is that the reg test fails because of a mismatch for rvfi_rs1_rdata. I think the problem is that the rs1 data is read from the wrong register. It's an optimization, which is fine because we never care about the data in rs1 dugin CSR*I instruction. But it seems like riscv-formal needs to have correct rs1 data here. Is that the intention, or can we relax the requirement in this case?

@towoe
Copy link

towoe commented May 14, 2020

From my understanding the register data must reflect the actual content only if the register address is non-zero. So if the register is not used maybe there is a way to use some status to discover that and use this when forwarding the registers?

@olofk
Copy link
Author

olofk commented May 14, 2020

@towoe Good idea. It seems like setting rvfi_rs1_addr to zero in these cases work. Still fails though, so keeping open for a bit more until I got it figured out

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

No branches or pull requests

2 participants