When I’m debugging the remote target on the HiFive1 Rev B, my GDB tells me the
mtime (address at 0x200bff8) value is still increasing even if the execution is halted. If I continue to the next break point, the trap is always triggered because
mtime becomes greater than the
mtimecmp while halting. I’m wondering is this how the architecture is designed or an issue of GDB or GDB server?
My configurations of GDB server
JLinkGDBServer -device FE310 -if JTAG -speed 4000 -port 333 -nogui
riscv-openocd -f board/sifive-hifive1-revb.cfg -c "halt" -c "reset init" -c "reset run"