google / CFU-Playground

Want a faster ML processor? Do it yourself! -- A framework for playing with custom opcodes to accelerate TensorFlow Lite for Microcontrollers (TFLM). . . . . . Online tutorial: https://google.github.io/CFU-Playground/ For reference docs, see the link below.
http://cfu-playground.rtfd.io/
Apache License 2.0
463 stars 117 forks source link

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

Open mgaggero opened 1 year ago

mgaggero commented 1 year ago

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 commented 1 year ago

@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 commented 1 year ago

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