Remove defunct IPI tests
authorAndrew Waterman <andrew@sifive.com>
Fri, 7 Apr 2017 23:19:47 +0000 (16:19 -0700)
committerAndrew Waterman <andrew@sifive.com>
Fri, 7 Apr 2017 23:19:47 +0000 (16:19 -0700)
isa/rv32mi/Makefrag
isa/rv32mi/ipi.S [deleted file]
isa/rv64mi/Makefrag
isa/rv64mi/ipi.S [deleted file]

index a72624478fb93d2fb5c6108eb3334db0a2cc3d7f..5ee7edc8dbbfab7b45e447b949e1aa7a74ff1514 100644 (file)
@@ -13,9 +13,6 @@ rv32mi_sc_tests = \
        sbreak \
        shamt \
 
-rv32mi_mc_tests = \
-       ipi \
-
 rv32mi_p_tests = $(addprefix rv32mi-p-, $(rv32mi_sc_tests))
 
 spike32_tests += $(rv32mi_p_tests)
diff --git a/isa/rv32mi/ipi.S b/isa/rv32mi/ipi.S
deleted file mode 100644 (file)
index c39fc29..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-# See LICENSE for license details.
-
-#include "riscv_test.h"
-#undef RVTEST_RV64M
-#define RVTEST_RV64M RVTEST_RV32M
-
-#include "../rv64mi/ipi.S"
index e4fa426d6a3d092973d807dd2d7b935a17373483..fb38e5f23293d9cfd19e39fc23eed6f2e55e2892 100644 (file)
@@ -12,9 +12,6 @@ rv64mi_sc_tests = \
        scall \
        sbreak \
 
-rv64mi_mc_tests = \
-       ipi \
-
 rv64mi_p_tests = $(addprefix rv64mi-p-, $(rv64mi_sc_tests))
 
 spike_tests += $(rv64mi_p_tests)
diff --git a/isa/rv64mi/ipi.S b/isa/rv64mi/ipi.S
deleted file mode 100644 (file)
index 7178310..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-# See LICENSE for license details.
-
-#*****************************************************************************
-# ipi.S
-#-----------------------------------------------------------------------------
-#
-# Test interprocessor interrupts.
-#
-
-#include "riscv_test.h"
-#include "test_macros.h"
-
-RVTEST_RV64M
-RVTEST_CODE_BEGIN
-
-  # enable interrupts
-  csrs mstatus, MSTATUS_MIE
-  csrs mie, MIP_MSIP
-
-  # get a unique core id
-  la a0, coreid
-  li a1, 1
-  amoadd.w a2, a1, (a0)
-  
-  # for now, only run this on core 0
-  1:li a3, 1
-  bgeu a2, a3, 1b
-  
-  # send a self-IPI
-  csrwi mipi, 1
-  1: j 1b
-
-mtvec_handler:
-  bnez a2, fail
-  RVTEST_PASS
-
-  TEST_PASSFAIL
-
-RVTEST_CODE_END
-
-  .data
-RVTEST_DATA_BEGIN
-
-  TEST_DATA
-
-coreid: .word 0
-foo: .word 0
-
-RVTEST_DATA_END