Skip to content

Commit

Permalink
Updated testlist with CSR Access tests
Browse files Browse the repository at this point in the history
  • Loading branch information
spidugu444 committed Sep 28, 2023
1 parent ea000b3 commit 79dca21
Showing 1 changed file with 69 additions and 2 deletions.
71 changes: 69 additions & 2 deletions verif/tests/testlist_riscv-csr-access-test-cv32a60x.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,76 @@
- test: MSCRATCH_CSR
## // Copyright 2023 Thales
## // SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1

- test: M_RW_CSR
iterations: 1
path_var: TESTS_PATH
# Prerequisite: install riscv-arch-test (== run 'cva6/regress/install-riscv-arch-test.sh') first.
# It will populate '<path_var>/riscv-arch-test/riscv-target/spike/' using the current Spike installation.
gcc_opts: "-DTEST_CASE_1=True -static -mcmodel=medany -fvisibility=hidden -nostdlib -nostartfiles -I<path_var>/riscv-arch-test/riscv-target/spike/"
asm_tests: <path_var>/custom/csr_access_tests/riscv_mscratch_csr_test_0.S
asm_tests: <path_var>/custom/CSR/csr_access_tests/riscv_m_rw_csr_test_0.S

- test: S_RW_CSR
iterations: 1
path_var: TESTS_PATH
# Prerequisite: install riscv-arch-test (== run 'cva6/regress/install-riscv-arch-test.sh') first.
# It will populate '<path_var>/riscv-arch-test/riscv-target/spike/' using the current Spike installation.
gcc_opts: "-DTEST_CASE_1=True -static -mcmodel=medany -fvisibility=hidden -nostdlib -nostartfiles -I<path_var>/riscv-arch-test/riscv-target/spike/"
asm_tests: <path_var>/custom/CSR/csr_access_tests/riscv_s_rw_csr_test_0.S

- test: M_RO_CSR
iterations: 1
path_var: TESTS_PATH
# Prerequisite: install riscv-arch-test (== run 'cva6/regress/install-riscv-arch-test.sh') first.
# It will populate '<path_var>/riscv-arch-test/riscv-target/spike/' using the current Spike installation.
gcc_opts: "-DTEST_CASE_1=True -static -mcmodel=medany -fvisibility=hidden -nostdlib -nostartfiles -I<path_var>/riscv-arch-test/riscv-target/spike/"
asm_tests: <path_var>/custom/CSR/csr_access_tests/riscv_m_ro_csr_test_0.S

- test: M_MCYCLE_CSR
iterations: 0
path_var: TESTS_PATH
# Prerequisite: install riscv-arch-test (== run 'cva6/regress/install-riscv-arch-test.sh') first.
# It will populate '<path_var>/riscv-arch-test/riscv-target/spike/' using the current Spike installation.
gcc_opts: "-DTEST_CASE_1=True -static -mcmodel=medany -fvisibility=hidden -nostdlib -nostartfiles -I<path_var>/riscv-arch-test/riscv-target/spike/"
asm_tests: <path_var>/custom/CSR/csr_access_tests/riscv_mcycle_csr_test_0.S

- test: M_MCYCLEH_CSR
iterations: 0
path_var: TESTS_PATH
# Prerequisite: install riscv-arch-test (== run 'cva6/regress/install-riscv-arch-test.sh') first.
# It will populate '<path_var>/riscv-arch-test/riscv-target/spike/' using the current Spike installation.
gcc_opts: "-DTEST_CASE_1=True -static -mcmodel=medany -fvisibility=hidden -nostdlib -nostartfiles -I<path_var>/riscv-arch-test/riscv-target/spike/"
asm_tests: <path_var>/custom/CSR/csr_access_tests/riscv_mcycleh_csr_test_0.S

- test: M_MINSTRET_CSR
iterations: 0
path_var: TESTS_PATH
# Prerequisite: install riscv-arch-test (== run 'cva6/regress/install-riscv-arch-test.sh') first.
# It will populate '<path_var>/riscv-arch-test/riscv-target/spike/' using the current Spike installation.
gcc_opts: "-DTEST_CASE_1=True -static -mcmodel=medany -fvisibility=hidden -nostdlib -nostartfiles -I<path_var>/riscv-arch-test/riscv-target/spike/"
asm_tests: <path_var>/custom/CSR/csr_access_tests/riscv_minstret_csr_test_0.S

- test: M_MINSTRETH_CSR
iterations: 0
path_var: TESTS_PATH
# Prerequisite: install riscv-arch-test (== run 'cva6/regress/install-riscv-arch-test.sh') first.
# It will populate '<path_var>/riscv-arch-test/riscv-target/spike/' using the current Spike installation.
gcc_opts: "-DTEST_CASE_1=True -static -mcmodel=medany -fvisibility=hidden -nostdlib -nostartfiles -I<path_var>/riscv-arch-test/riscv-target/spike/"
asm_tests: <path_var>/custom/CSR/csr_access_tests/riscv_minstreth_csr_test_0.S

- test: U_CYCLE_CSR
iterations: 0
path_var: TESTS_PATH
# Prerequisite: install riscv-arch-test (== run 'cva6/regress/install-riscv-arch-test.sh') first.
# It will populate '<path_var>/riscv-arch-test/riscv-target/spike/' using the current Spike installation.
gcc_opts: "-DTEST_CASE_1=True -static -mcmodel=medany -fvisibility=hidden -nostdlib -nostartfiles -I<path_var>/riscv-arch-test/riscv-target/spike/"
asm_tests: <path_var>/custom/CSR/csr_access_tests/riscv_cycle_csr_test_0.S

- test: U_INSTRET_CSR
iterations: 0
path_var: TESTS_PATH
# Prerequisite: install riscv-arch-test (== run 'cva6/regress/install-riscv-arch-test.sh') first.
# It will populate '<path_var>/riscv-arch-test/riscv-target/spike/' using the current Spike installation.
gcc_opts: "-DTEST_CASE_1=True -static -mcmodel=medany -fvisibility=hidden -nostdlib -nostartfiles -I<path_var>/riscv-arch-test/riscv-target/spike/"
asm_tests: <path_var>/custom/CSR/csr_access_tests/riscv_instret_csr_test_0.S


0 comments on commit 79dca21

Please sign in to comment.