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

misa reports incorrect value in Sail #55

Open
rmn30 opened this issue Jun 24, 2024 · 1 comment
Open

misa reports incorrect value in Sail #55

rmn30 opened this issue Jun 24, 2024 · 1 comment

Comments

@rmn30
Copy link
Collaborator

rmn30 commented Jun 24, 2024

Sail currently sets bits C, D, E, F, M, V and X in misa. This is wrong as D (double float), F (float) and V (vector) are not supported. Also B (bit vector) is supported and should be set (removed as I don't think this is standardized).

The -F and -W options to the simulator can be used to disable the floating point and vector extensions, but we should change the default in sail-riscv/c_emulator/riscv_platform_impl.c as we don't even compile the instruction definitions.

@rmn30
Copy link
Collaborator Author

rmn30 commented Jul 10, 2024

This upstream PR looks like it could help with this: riscv/sail-riscv#506

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

1 participant