From d5fb1309c80bf57cb33e53b7fa6010fe6a374062 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Fri, 22 Jul 2016 11:25:52 -0700 Subject: [PATCH] Move dirty bit test to rv64si directory Not sure this is quite right, since the test technically runs in M-mode. Also, remove unused rdnpc/example tests. --- isa/rv64mi/Makefrag | 1 - isa/rv64si/Makefrag | 1 + isa/{rv64mi => rv64si}/dirty.S | 0 isa/rv64ui/Makefrag | 2 +- isa/rv64ui/example.S | 27 --------------------------- isa/rv64ui/rdnpc.S | 31 ------------------------------- 6 files changed, 2 insertions(+), 60 deletions(-) rename isa/{rv64mi => rv64si}/dirty.S (100%) delete mode 100644 isa/rv64ui/example.S delete mode 100644 isa/rv64ui/rdnpc.S diff --git a/isa/rv64mi/Makefrag b/isa/rv64mi/Makefrag index 4ae8733..e4fa426 100644 --- a/isa/rv64mi/Makefrag +++ b/isa/rv64mi/Makefrag @@ -4,7 +4,6 @@ rv64mi_sc_tests = \ breakpoint \ - dirty \ csr \ mcsr \ illegal \ diff --git a/isa/rv64si/Makefrag b/isa/rv64si/Makefrag index 076ea59..c0dbce8 100644 --- a/isa/rv64si/Makefrag +++ b/isa/rv64si/Makefrag @@ -4,6 +4,7 @@ rv64si_sc_tests = \ csr \ + dirty \ ma_fetch \ scall \ wfi \ diff --git a/isa/rv64mi/dirty.S b/isa/rv64si/dirty.S similarity index 100% rename from isa/rv64mi/dirty.S rename to isa/rv64si/dirty.S diff --git a/isa/rv64ui/Makefrag b/isa/rv64ui/Makefrag index aeeb560..1867ea5 100644 --- a/isa/rv64ui/Makefrag +++ b/isa/rv64ui/Makefrag @@ -7,7 +7,7 @@ rv64ui_sc_tests = \ and andi \ auipc \ beq bge bgeu blt bltu bne \ - example simple \ + simple \ fence_i \ jal jalr \ lb lbu lh lhu lw lwu ld \ diff --git a/isa/rv64ui/example.S b/isa/rv64ui/example.S deleted file mode 100644 index 6c45fbd..0000000 --- a/isa/rv64ui/example.S +++ /dev/null @@ -1,27 +0,0 @@ -# See LICENSE for license details. - -#***************************************************************************** -# simple.S -#----------------------------------------------------------------------------- -# -# This is the most basic self checking test. If your simulator does not -# pass thiss then there is little chance that it will pass any of the -# more complicated self checking tests. -# - -#include "riscv_test.h" -#include "test_macros.h" - -RVTEST_RV64U -RVTEST_CODE_BEGIN - -RVTEST_PASS - -RVTEST_CODE_END - - .data -RVTEST_DATA_BEGIN - - TEST_DATA - -RVTEST_DATA_END diff --git a/isa/rv64ui/rdnpc.S b/isa/rv64ui/rdnpc.S deleted file mode 100644 index e00839e..0000000 --- a/isa/rv64ui/rdnpc.S +++ /dev/null @@ -1,31 +0,0 @@ -# See LICENSE for license details. - -#***************************************************************************** -# rdnpc_w.S -#----------------------------------------------------------------------------- -# -# Test rdnpc instruction. -# - -#include "riscv_test.h" -#include "test_macros.h" - -RVTEST_RV64U -RVTEST_CODE_BEGIN - - TEST_CASE(2, a0, 4, \ - rdnpc a0; \ - jal 1f; \ - 1: sub a0, ra, a0; \ - ) - - TEST_PASSFAIL - -RVTEST_CODE_END - - .data -RVTEST_DATA_BEGIN - - TEST_DATA - -RVTEST_DATA_END -- 2.30.2