From a541a2a65dbe1ec3bcdb24d15e92529d787bd160 Mon Sep 17 00:00:00 2001 From: Yujia Qiao Date: Tue, 14 Feb 2023 07:52:47 +0800 Subject: Fix ma_fetch test for norvc (#454) The trap handler for norvc systems has an incorrect jump offset Signed-off-by: Yujia Qiao --- isa/rv64si/ma_fetch.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isa/rv64si/ma_fetch.S b/isa/rv64si/ma_fetch.S index 255ad48..b683b6f 100644 --- a/isa/rv64si/ma_fetch.S +++ b/isa/rv64si/ma_fetch.S @@ -212,7 +212,7 @@ stvec_handler: bne a0, t0, fail 1: - addi a1, a1, 12 + addi a1, a1, 8 csrw sepc, a1 sret -- cgit v1.1