I'm trying to fix the remote connection to GDB in RISC-V (patch #20028 <https://gem5-review.googlesource.com/c/public/gem5/+/20028>) and I'm running into an issue where RISC-V GDB is sending a breakpoint of length 2 bytes, but gem5 is expecting one of length 4 (the length of an instruction, see line 835 of src/base/remote_gdb.cc).
If I'm interpreting this correctly, the 'length' of a breakpoint should be the number of bytes in the instruction on which the program should be interrupted, which in RISC-V is 4 for normal instructions but can also be 2 for compressed ones. Is my interpretation correct? If so, how do other ISAs (notably x86) handle breakpoints on variable instruction widths? Thanks, Alec Roelke _______________________________________________ gem5-dev mailing list gem5-dev@gem5.org http://m5sim.org/mailman/listinfo/gem5-dev