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

Clarify the sbiret.value #184

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

atishp04
Copy link
Collaborator

@atishp04 atishp04 commented Nov 8, 2024

As per the calling convention a1 will have sbiret.value on ecall return. However, the current specification describes an anlogous C structure describing as long. Some of the SBI extension may require an "unsigned long" data type instead of "long".

Relax the analgous C structure definition to allow that.

Fixes: #158

As per the calling convention a1 will have sbiret.value on ecall
return. However, the current specification describes an anlogous
C structure describing as long. Some of the SBI extension may require
an "unsigned long" data type instead of "long".

Relax the analgous C structure definition to allow that.

Fixes: riscv-non-isa#158

Signed-off-by: Atish Patra <[email protected]>
@atishp04
Copy link
Collaborator Author

atishp04 commented Nov 8, 2024

Cc: @avpatel @jones-drew @SiFiveHolland

@avpatel
Copy link
Contributor

avpatel commented Nov 8, 2024

Looks good to me.

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

Successfully merging this pull request may close these issues.

Value overflow on sbiret?
2 participants