From: Christopher Celio Date: Wed, 1 Nov 2017 20:46:34 +0000 (-0700) Subject: SBREAK test now checks EPC value. (#92) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f281625313e9ebd7bcae918ae4abe8bd0bd63b81;p=riscv-tests.git SBREAK test now checks EPC value. (#92) Closes #89 --- 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