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

GDB doesn't support CUSTOM0/cfu instruction on disassemble command. #733

Open
mgaggero opened this issue Nov 6, 2022 · 2 comments
Open

Comments

@mgaggero
Copy link

mgaggero commented Nov 6, 2022

Hi,
the disassemble [/r|/m|/s] command on gdb running against cfu code does not show the CUSTOM0/CFU instruction mnemonic but its machine code representation.

The toolchain is the August 2020 toolchain from freedom-tools.
GDB version is GNU gdb (SiFive GDB 9.1.0-2020.08.2) 9.1.
GCC version is 10.1.0 (SiFive GCC 10.1.0-2020.08.2).

Maybe related to #470.

gdb_custom0

@tcal-x
Copy link
Collaborator

tcal-x commented Nov 7, 2022

@mgaggero yes you are correct on all counts. We do have a special disassembly script that patches that, but it doesn't help with GDB. I haven't had time to follow up on #470 and am not sure when I can, but thanks for raising awareness that it would be useful!

@tcal-x
Copy link
Collaborator

tcal-x commented Nov 9, 2022

@PiotrZierhoffer , @mateusz-holenko , @kgugala -- do you have any experience with this from your other work with RISC-V custom extensions? See the link in #470.

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

2 participants