aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/ebreak.h
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2017-03-27 21:21:57 -0700
committerAndrew Waterman <andrew@sifive.com>2017-03-27 21:21:57 -0700
commit8f4fb411b016846a539a1ff1cd645a555e3737be (patch)
treebdd4c84e0c370f5a27aa565783d298d7a8e10396 /riscv/insns/ebreak.h
parenta80c695b1961ac40086494920f82e85a085ff358 (diff)
downloadspike-8f4fb411b016846a539a1ff1cd645a555e3737be.zip
spike-8f4fb411b016846a539a1ff1cd645a555e3737be.tar.gz
spike-8f4fb411b016846a539a1ff1cd645a555e3737be.tar.bz2
On EBREAK, set badaddr to pc
Diffstat (limited to 'riscv/insns/ebreak.h')
-rw-r--r--riscv/insns/ebreak.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/insns/ebreak.h b/riscv/insns/ebreak.h
index c22776c..736cebe 100644
--- a/riscv/insns/ebreak.h
+++ b/riscv/insns/ebreak.h
@@ -1 +1 @@
-throw trap_breakpoint();
+throw trap_breakpoint(pc);