commit | 758914fea278658943e3a56e4d373ae8c6f0d9e5 | [log] [tgz] |
---|---|---|
author | Jim Wilson <jimw@sifive.com> | Sat Jul 14 17:34:39 2018 -0700 |
committer | Palmer Dabbelt <palmer@sifive.com> | Mon Aug 13 08:31:30 2018 -0700 |
tree | fa3feae3aca87305f5c23ff7187f51cc986c615e | |
parent | a89757daf25cfe5320a5f40773271d86e2456c10 [diff] |
RISC-V: Don't increment sepc after breakpoint. Adding 4 to sepc is pointless, and is wrong if we executed a 2-byte compressed breakpoint. This plus a corresponding gdb patch allows compressed breakpoints to work in gdb. Gdb maintainers have already agreed that this is the right approach. Signed-off-by: Jim Wilson <jimw@sifive.com> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>