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

Expected Behavior of rv64mi-p-illegal ISA Test #501

Open
kathlenehurt-sifive opened this issue Aug 16, 2023 · 0 comments
Open

Expected Behavior of rv64mi-p-illegal ISA Test #501

kathlenehurt-sifive opened this issue Aug 16, 2023 · 0 comments

Comments

@kathlenehurt-sifive
Copy link
Contributor

I am not sure what the expected behavior should be for this section of the rv64mi-p-illegal ISA test:

# Delegate supervisor software interrupts so WFI won't stall.
csrwi mideleg, MIP_SSIP
# Enter supervisor mode.
la t0, 1f
csrw mepc, t0
li t0, MSTATUS_MPP
csrc mstatus, t0
li t1, (MSTATUS_MPP & -MSTATUS_MPP) * PRV_S
csrs mstatus, t1
mret
1:
# Make sure WFI doesn't trap when TW=0.
wfi

I believe that a supervisor software interrupt should be fired, but the test fails if that happens. Should the interrupt be fired? If not, how do lines 49-56 prevent the interrupt from firing?

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

No branches or pull requests

1 participant