Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a test for user mode #185

Merged
merged 6 commits into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions .github/workflows/test-riscv-dv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ jobs:
test: riscv_illegal_instr_test
- iss: whisper
test: riscv_illegal_instr_test
- iss: whisper
test: riscv_full_interrupt_test

# FIXME: VeeR specific WARL CSRs behavior in PMP is not implemented
# in whisper, hence this exclusion list for PMP tests
Expand Down
2 changes: 1 addition & 1 deletion third_party/riscv-dv
Submodule riscv-dv updated 2 files
+9 −4 run.py
+2 −2 yaml/iss.yaml
1 change: 1 addition & 0 deletions tools/riscv-dv/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ RISCV_DV_ARGS = \
--batch_size $(RISCV_DV_BATCH) \
--isa rv32imc_zicsr_zifencei_zba_zbb_zbc_zbs \
--mabi ilp32 \
--priv u \
--custom_target $(PWD) \
--testlist $(PWD)/testlist.yaml \
-v -o $(TEST_DIR)
Expand Down
2 changes: 1 addition & 1 deletion tools/riscv-dv/riscv_core_setting.sv
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
parameter int XLEN = 32;
parameter satp_mode_t SATP_MODE = BARE;
privileged_mode_t supported_privileged_mode[] = {MACHINE_MODE};
privileged_mode_t supported_privileged_mode[] = {MACHINE_MODE, USER_MODE};

// NOTE: To get supported and unsupported instructions compare
// riscv-dv/src/riscv_instr_pkg.sv and Cores-VeeR-EL2/design/dec/decode files
Expand Down
9 changes: 9 additions & 0 deletions tools/riscv-dv/testlist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,13 @@
+enable_zbs_extension=1
+enable_b_extension=1
+enable_bitmanip_groups=zbf,zbt

- test: riscv_user_mode_rand_test
desc: >
User mode random instruction test
iterations: 100
gen_test: riscv_instr_base_test
gen_opts: >
+instr_cnt=10000
+boot_mode=u
rtl_test: core_base_test
Loading