-
Notifications
You must be signed in to change notification settings - Fork 893
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
Can spike-dasm disassemble specified extensions through the --isa option? #1879
Comments
Yes, this is the intended behavior. We always try to disassemble an instruction even if it corresponds to an extension that isn't enabled. For this program, the only purpose of the
|
Hi @aswaterman,
Now, I want to change the source code to disassemble specified extensions by the --isa argument or another argument. I have checked the code: I need a tool to disassemble instructions. Since Spike is considered the golden model, I believe the best approach is to modify spike-dasm. As someone who is highly knowledgeable about Spike, could you please provide me with some guidance? |
I’m not sure I follow exactly what you’re trying to do. Could you give some user stories (really just examples of input, command-line options, and desired output) that would illustrate your goal? |
For example, I run
In another case, I run |
I think this should be straightforward. Let me try to prototype something. |
See #1881 |
I have tested it, it works. Nice job! |
You're welcome! |
When I run spike-dasm to disassemble instructions, it disassembled vector extension. When I specify the extensions, it ignored. It seems that this tool could disassemble any instruction.
I have read the code of spike-dasm.cc, it supports the DEFAULT_ISA, which is
rv64imafdc_zicntr_zihpm
. In the code, spike-dasm will parseisa
option, but it fails to disassemble instructions of specified extensions. Is this normal?version: latest(a2dcf1f), 1.1.1-dev
The text was updated successfully, but these errors were encountered: