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

riscv_dret_test check fail #2024

Open
Jiahua-Gong opened this issue May 4, 2023 · 1 comment
Open

riscv_dret_test check fail #2024

Jiahua-Gong opened this issue May 4, 2023 · 1 comment
Labels

Comments

@Jiahua-Gong
Copy link

DV Bugs:
UVM_FATAL core_ibex_test_lib.sv(842) @ 8492700: reporter [uvm_test_top] Check failed dut_vif.dut_cb.priv_mode == mode (0 [0x0] vs 3 [0x3]) Incorrect privilege mode

I think a dv bug, spike run asm code mret, (Machine mode -> User Mode && check mstatus == 2'b00).
RTL: return to the user mode,it's okay.
Testbench: should stay machine mode state. I think it's wrong.

@Jiahua-Gong Jiahua-Gong added the Type:Bug Bugs label May 4, 2023
@rswarbrick
Copy link
Contributor

Hi there, and thanks for the message.

Could you give us a little more information about how to reproduce this? Maybe a seed for the test? I just ran make IBEX_CONFIG=opentitan SIMULATOR=vcs ISS=spike ITERATIONS=1 SEED=1 TEST=riscv_dret_test WAVES=0 COV=0 in the uvm/core_ibex directory and everything seemed to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants