-
Notifications
You must be signed in to change notification settings - Fork 16
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
Smsdia clarifications #16
Comments
Thats right.
Should be read-write.
The IMSIC/APLIC selection is done by
The behavior only applies to privilege level less than M. Updates made in #17 |
Thanks :)
So when SDICN is 0 and siselect points at IMSIC CSRs, which SD IMSIC is read by an M-mode access to sireg? |
You are right. I somehow misread the question as being related to stateen. Let me reword the quoted sentence to be more clear. |
The PR has been further updated to address these issues. Please take a look. |
Looks good - thank you! :) |
merged PR so closing issue (thanks @IMG-S-Hopton, @ved-rivos) |
Hi,
A couple of questions relating to Chapter 7 (Smsdia) please.
1
With respect to the Supervisor Domain External Interrupt (SDEI); The current text does not contain where in the priority order this is expected to be seen - am I right in thinking that since this is a machine-mode only interrupt which cannot be delegated, it comes before SEI?
2
riscv-smmtt/chapter7.adoc
Lines 201 to 203 in 3b03fb0
msdeie
is a read-write register, butmsdeieh
is mentioned to be read-only; am I correct in thinking this is a copy paste error?3
https://github.com/riscv/riscv-smmtt/blob/3b03fb0a0ee88fc077006cb8e77d3ae3ffe67093/chapter7.adoc?plain=1#L40C1-L55C5
The "Supervisor Domain Interrupt Assignment" diagram references an SD-0 APLIC/IMSIC, but msdcfg does not allow 0 to be used as a selection for an IMSIC/APLIC. Is this intentional?
4
riscv-smmtt/chapter7.adoc
Lines 138 to 139 in 3b03fb0
SDICN being 0 refers to acting as
mstateen0
bits 60/59/58 being 0; the AIA spec specifically states that this does not affect M-mode accesses.Am I right in thinking that the intended behaviour in all modes including M is actually to be the same as if there is no IMSIC connected (e.g. sireg access while siselect is in the IMSIC range raises an illegal instruction exception)?
Thanks! :)
Selina
The text was updated successfully, but these errors were encountered: