aboutsummaryrefslogtreecommitdiff
path: root/riscv
diff options
context:
space:
mode:
authorNeel Gala <neelgala@gmail.com>2020-10-18 04:10:08 +0530
committerGitHub <noreply@github.com>2020-10-17 15:40:08 -0700
commitbe5af59bcaca4dc90a0d276e1eccc4f4896b0373 (patch)
tree71982568565ec0978e079ceb218753a58716edec /riscv
parent036aacbeb276be794f7a3ba89f5da3c5b2f8eb9f (diff)
downloadspike-be5af59bcaca4dc90a0d276e1eccc4f4896b0373.zip
spike-be5af59bcaca4dc90a0d276e1eccc4f4896b0373.tar.gz
spike-be5af59bcaca4dc90a0d276e1eccc4f4896b0373.tar.bz2
fixed mtval update for breakpoint instructions (#573)
Co-authored-by: Neel Gala <neelgala@incoresemi.com>
Diffstat (limited to 'riscv')
-rw-r--r--riscv/insns/c_ebreak.h2
-rw-r--r--riscv/insns/ebreak.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/riscv/insns/c_ebreak.h b/riscv/insns/c_ebreak.h
index 1c36b24..128b86b 100644
--- a/riscv/insns/c_ebreak.h
+++ b/riscv/insns/c_ebreak.h
@@ -1,2 +1,2 @@
require_extension('C');
-throw trap_breakpoint(0);
+throw trap_breakpoint(pc);
diff --git a/riscv/insns/ebreak.h b/riscv/insns/ebreak.h
index f123f95..736cebe 100644
--- a/riscv/insns/ebreak.h
+++ b/riscv/insns/ebreak.h
@@ -1 +1 @@
-throw trap_breakpoint(0);
+throw trap_breakpoint(pc);