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

HTIF does not match pseudo spec and other implementations #147

Open
abukharmeh opened this issue Feb 1, 2022 · 0 comments
Open

HTIF does not match pseudo spec and other implementations #147

abukharmeh opened this issue Feb 1, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@abukharmeh
Copy link
Contributor

abukharmeh commented Feb 1, 2022

In RV32, writes to tohost could be interpreted in more than a single way depending on when HTIF tick happens.

This was reported earlier #69 and was 'fixed' in 848312c.

However, I am not sure that this fix is factually correct, as according to this comment riscv-software-src/riscv-isa-sim#364 (comment) , blocking device character is not be supported in RV32 and only syscalls are supported.

This claim is supported by this snippet in PK https://github.com/riscv-software-src/riscv-pk/blob/2f3e6f530384b4ab9f8b39bceb8e86f2ba51a835/machine/htif.c#L92-L107

@abukharmeh abukharmeh changed the title HTIF does not match pseudo specs and other implementation HTIF does not match pseudo spec and other implementation Feb 1, 2022
@abukharmeh abukharmeh changed the title HTIF does not match pseudo spec and other implementation HTIF does not match pseudo spec and other implementations Feb 1, 2022
@Timmmm Timmmm added the bug Something isn't working label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants