CFU-Playground icon indicating copy to clipboard operation
CFU-Playground copied to clipboard

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

Open mgaggero opened this issue 2 years ago • 2 comments

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

mgaggero avatar Nov 06 '22 17:11 mgaggero

@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 avatar Nov 07 '22 18:11 tcal-x

@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.

tcal-x avatar Nov 09 '22 17:11 tcal-x