summaryrefslogtreecommitdiffstats
path: root/arch/riscv/kernel/setup.c
diff options
context:
space:
mode:
authorJim Wilson2018-07-15 02:34:39 +0200
committerPalmer Dabbelt2018-08-13 17:31:30 +0200
commit758914fea278658943e3a56e4d373ae8c6f0d9e5 (patch)
treefa3feae3aca87305f5c23ff7187f51cc986c615e /arch/riscv/kernel/setup.c
parentRISC-V: implement __lshrti3. (diff)
downloadkernel-qcow2-linux-758914fea278658943e3a56e4d373ae8c6f0d9e5.tar.gz
kernel-qcow2-linux-758914fea278658943e3a56e4d373ae8c6f0d9e5.tar.xz
kernel-qcow2-linux-758914fea278658943e3a56e4d373ae8c6f0d9e5.zip
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>
Diffstat (limited to 'arch/riscv/kernel/setup.c')
0 files changed, 0 insertions, 0 deletions