projects
/
riscv-tests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc4fb60
)
SBREAK test now checks EPC value. (#92)
author
Christopher Celio
<celio@eecs.berkeley.edu>
Wed, 1 Nov 2017 20:46:34 +0000
(13:46 -0700)
committer
Andrew Waterman
<aswaterman@gmail.com>
Wed, 1 Nov 2017 20:46:34 +0000
(13:46 -0700)
Closes #89
isa/rv64si/sbreak.S
patch
|
blob
|
history
diff --git
a/isa/rv64si/sbreak.S
b/isa/rv64si/sbreak.S
index d5a2de7a0852ed52ad1c89ccdd115af17040569a..31efff83910b4878dcca38fdc0a975bed64281db 100644
(file)
--- a/
isa/rv64si/sbreak.S
+++ b/
isa/rv64si/sbreak.S
@@
-24,6
+24,7
@@
RVTEST_CODE_BEGIN
li TESTNUM, 2
+do_break:
sbreak
j fail
@@
-35,6
+36,9
@@
stvec_handler:
li t1, CAUSE_BREAKPOINT
csrr t0, scause
bne t0, t1, fail
+ la t1, do_break
+ csrr t0, sepc
+ bne t0, t1, fail
j pass
RVTEST_CODE_END