aboutsummaryrefslogtreecommitdiff
path: root/isa/rv64si/illegal.S
diff options
context:
space:
mode:
Diffstat (limited to 'isa/rv64si/illegal.S')
-rw-r--r--isa/rv64si/illegal.S48
1 files changed, 0 insertions, 48 deletions
diff --git a/isa/rv64si/illegal.S b/isa/rv64si/illegal.S
deleted file mode 100644
index 43068b4..0000000
--- a/isa/rv64si/illegal.S
+++ /dev/null
@@ -1,48 +0,0 @@
-# See LICENSE for license details.
-
-#*****************************************************************************
-# illegal.S
-#-----------------------------------------------------------------------------
-#
-# Test illegal instruction trap.
-#
-
-#include "riscv_test.h"
-#include "test_macros.h"
-
-RVTEST_RV64S
-RVTEST_CODE_BEGIN
-
-#ifdef __MACHINE_MODE
- #define sscratch mscratch
- #define sstatus mstatus
- #define scause mcause
- #define sepc mepc
- #define stvec_handler mtvec_handler
-#endif
-
- li TESTNUM, 2
- .word 0
- j fail
-
- j pass
-
- TEST_PASSFAIL
-
-stvec_handler:
- li t1, CAUSE_ILLEGAL_INSTRUCTION
- csrr t0, scause
- bne t0, t1, fail
- csrr t0, sepc
- addi t0, t0, 8
- csrw sepc, t0
- sret
-
-RVTEST_CODE_END
-
- .data
-RVTEST_DATA_BEGIN
-
- TEST_DATA
-
-RVTEST_DATA_END