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

Conflicting statements about mip.LSDEI in AIA and Smsdia spec #122

Open
Baixyzz opened this issue Feb 5, 2025 · 3 comments
Open

Conflicting statements about mip.LSDEI in AIA and Smsdia spec #122

Baixyzz opened this issue Feb 5, 2025 · 3 comments

Comments

@Baixyzz
Copy link

Baixyzz commented Feb 5, 2025

From AIA spec,we can see

For whichever standard local interrupts are implemented, the corresponding bits in CSRs mip and mie must be writable.

From Smsdia spec,we can see

The Smsdia extension introduces the local supervisor domain external interrupt-pending (LSDEI).This interrupt is treated as a standard local interrupt that is assigned to bit 16 in the mip, mie, sip, and sie registers.

The mip.LSDEIP bit is read-only.

LSDEI is treated as a standard local interrupt, so mip.LSEIP should be writable if we follow AIA spec. But Smsdia spec proposed the opposite rule. Which one is correct?

@Baixyzz
Copy link
Author

Baixyzz commented Feb 7, 2025

@rsahita About this question,can you give us some advice?

@rsahita
Copy link
Collaborator

rsahita commented Feb 7, 2025

hi @Baixyzz thanks for pointing it out - the mip.LSDEIP should be writable. I will correct in a PR.

@Baixyzz
Copy link
Author

Baixyzz commented Feb 7, 2025

@rsahita Thanks for your reply. The the sip.LSDEIP has the same problem.

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

2 participants