diff --git a/verif/tests/testlist_riscv-csr-access-test-cv32a60x.yaml b/verif/tests/testlist_riscv-csr-access-test-cv32a60x.yaml index cb0da95683..23234e5281 100644 --- a/verif/tests/testlist_riscv-csr-access-test-cv32a60x.yaml +++ b/verif/tests/testlist_riscv-csr-access-test-cv32a60x.yaml @@ -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 '/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/riscv-arch-test/riscv-target/spike/" - asm_tests: /custom/csr_access_tests/riscv_mscratch_csr_test_0.S + asm_tests: /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 '/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/riscv-arch-test/riscv-target/spike/" + asm_tests: /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 '/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/riscv-arch-test/riscv-target/spike/" + asm_tests: /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 '/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/riscv-arch-test/riscv-target/spike/" + asm_tests: /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 '/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/riscv-arch-test/riscv-target/spike/" + asm_tests: /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 '/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/riscv-arch-test/riscv-target/spike/" + asm_tests: /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 '/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/riscv-arch-test/riscv-target/spike/" + asm_tests: /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 '/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/riscv-arch-test/riscv-target/spike/" + asm_tests: /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 '/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/riscv-arch-test/riscv-target/spike/" + asm_tests: /custom/CSR/csr_access_tests/riscv_instret_csr_test_0.S +