From f281625313e9ebd7bcae918ae4abe8bd0bd63b81 Mon Sep 17 00:00:00 2001 From: Christopher Celio Date: Wed, 1 Nov 2017 13:46:34 -0700 Subject: [PATCH] SBREAK test now checks EPC value. (#92) Closes #89 --- isa/rv64si/sbreak.S | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/isa/rv64si/sbreak.S b/isa/rv64si/sbreak.S index d5a2de7..31efff8 100644 --- 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 -- 2.30.2