From 069ccc6b8677889f24c259a6b8b267f2233a7dfe Mon Sep 17 00:00:00 2001 From: SLAMET RIANTO <59614506+slametr-sifive@users.noreply.github.com> Date: Wed, 12 May 2021 16:47:04 -0500 Subject: Fix for rv64mi/sbreak and rv64mi/scall that I broke in my previous commit: (#337) Added "#define stvec mtvec" under __MACHINE_MODE ifdef. Co-authored-by: Slamet Rianto --- isa/rv64si/sbreak.S | 1 + isa/rv64si/scall.S | 1 + 2 files changed, 2 insertions(+) (limited to 'isa') diff --git a/isa/rv64si/sbreak.S b/isa/rv64si/sbreak.S index 8de8e15..475bf65 100644 --- a/isa/rv64si/sbreak.S +++ b/isa/rv64si/sbreak.S @@ -17,6 +17,7 @@ RVTEST_CODE_BEGIN #define sscratch mscratch #define sstatus mstatus #define scause mcause + #define stvec mtvec #define sepc mepc #define sret mret #define stvec_handler mtvec_handler diff --git a/isa/rv64si/scall.S b/isa/rv64si/scall.S index 5dda6bb..eb6f1e6 100644 --- a/isa/rv64si/scall.S +++ b/isa/rv64si/scall.S @@ -17,6 +17,7 @@ RVTEST_CODE_BEGIN #define sscratch mscratch #define sstatus mstatus #define scause mcause + #define stvec mtvec #define sepc mepc #define sret mret #define stvec_handler mtvec_handler -- cgit v1.1