SBREAK test now checks EPC value. (#92)
authorChristopher Celio <celio@eecs.berkeley.edu>
Wed, 1 Nov 2017 20:46:34 +0000 (13:46 -0700)
committerAndrew Waterman <aswaterman@gmail.com>
Wed, 1 Nov 2017 20:46:34 +0000 (13:46 -0700)
Closes #89

isa/rv64si/sbreak.S

index d5a2de7a0852ed52ad1c89ccdd115af17040569a..31efff83910b4878dcca38fdc0a975bed64281db 100644 (file)
@@ -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