aboutsummaryrefslogtreecommitdiff
path: root/isa
diff options
context:
space:
mode:
authorSLAMET RIANTO <59614506+slametr-sifive@users.noreply.github.com>2021-05-12 16:47:04 -0500
committerGitHub <noreply@github.com>2021-05-12 14:47:04 -0700
commit069ccc6b8677889f24c259a6b8b267f2233a7dfe (patch)
tree69597472920dd33f9e1b379c90765a718b2245e1 /isa
parentc22b105d5a333cce3b2bef1ef3a0d2b773a54dd5 (diff)
downloadriscv-tests-069ccc6b8677889f24c259a6b8b267f2233a7dfe.zip
riscv-tests-069ccc6b8677889f24c259a6b8b267f2233a7dfe.tar.gz
riscv-tests-069ccc6b8677889f24c259a6b8b267f2233a7dfe.tar.bz2
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 <slametr@gamma04.internal.sifive.com>
Diffstat (limited to 'isa')
-rw-r--r--isa/rv64si/sbreak.S1
-rw-r--r--isa/rv64si/scall.S1
2 files changed, 2 insertions, 0 deletions
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