riscv-software-src / riscv-isa-sim

Spike, a RISC-V ISA Simulator
Other
2.45k stars 861 forks source link

Does Hwacha support GDB for debugging? #472

Closed kangrl666 closed 4 years ago

kangrl666 commented 4 years ago

1.Does Hwacha support GDB for debugging?

2.Run command“spike -H --rbb-port=9824 --extension=hwacha vec-vvadd.riscv”,this program doesn‘t start halted,directly output results,not allowing a debugger to connect。

But run command“spike -H --rbb-port=9824 vvadd.riscv”,this program start halted。spike connects openocd, openocd connects GDB,both are ok,debugging is ok。

why?the command“spike -H” is right for RISC-V,but not right for Hwacha? how to solve the problem for debugging Hwacha instructions?

colinschmidt commented 4 years ago

I've responded on the hwacha issue and think we should keep the discussion there. Closing this now.