-
Notifications
You must be signed in to change notification settings - Fork 813
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
How could we get the value of the misa register? #710
Comments
|
Thank you @aswaterman for replying to this! |
There isn't a straightforward way to check. You can try executing a C-extension instruction and see if you get an exception. On RISC-V Linux, a program's ELF header indicates whether it requires the C extension, and the kernel's ELF loader will refuse to load the program if the processor does not support C. |
Thank you. I really appreciate your help and the details. |
Hi,
I've tried
and got an
An illegal instruction was executed!
message in spike. I wonder how can I get the value of this register, or how could we get CPU features of the current simulator, e.g. whether the C extension is supported. Did I get something wrong? I am not so familiar with this, and thanks in advance.The text was updated successfully, but these errors were encountered: