| commit | ae14cde6fd2c527c407a115fa1684c2002749552 | [log] [tgz] |
|---|---|---|
| author | Bernd Edlinger <bernd.edlinger@hotmail.de> | Fri Apr 12 08:55:11 2024 +0200 |
| committer | Bernd Edlinger <bernd.edlinger@hotmail.de> | Mon Apr 15 10:20:50 2024 +0200 |
| tree | 3570633578e0075fc8da3e9f87ee8535f8738a74 | |
| parent | 5966e2eb3fed61ebe5c091a074b368b9238a68c1 [diff] |
sim: riscv: Fix PC at gdb breakpoints The uncompressed EBREAK instruction does not work correctly this way, and the comment saying that GDB expects us to step over EBREAK is just wrong. The PC was always 4 bytes too high, which skips one instruction at break and step over commands, and causes complete chaos. The compressed EBREAK was already implemented correctly. Tested by using gdb's "target sim" and single-stepping. Approved-By: Andrew Burgess <aburgess@redhat.com>