Skip to content

CSR: use the guest-visible interrupt cause for VS-mode vectored dispatch - #3821

Open
PorterLu wants to merge 1 commit into
chipsalliance:masterfrom
PorterLu:fix/vs-vectored-interrupt-cause
Open

CSR: use the guest-visible interrupt cause for VS-mode vectored dispatch#3821
PorterLu wants to merge 1 commit into
chipsalliance:masterfrom
PorterLu:fix/vs-vectored-interrupt-cause

Conversation

@PorterLu

Copy link
Copy Markdown

vscause records the guest-visible cause code (SSI=1, STI=5, SEI=9), but the vector offset was derived from the HS-view code (VSSI=2, VSTI=6, VSEI=10). A guest in vectored mode therefore entered handler entry N+1 while vscause read N, with nothing to indicate the misdispatch.

Related issue: none

Type of change: bug report

Impact: functional fix

Development Phase: implementation

vscause records the guest-visible cause code (SSI=1, STI=5, SEI=9), but the
vector offset was derived from the HS-view code (VSSI=2, VSTI=6, VSEI=10).
A guest in vectored mode therefore entered handler entry N+1 while vscause
read N, with nothing to indicate the misdispatch.
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

Successfully merging this pull request may close these issues.

1 participant