Re: Question about CSR hedeleg and hideleg
Oscar Jupp
Dear architect, Thanks! I learned a lot from you. I used to think that mip is used to indicate the summary of interrupts that need to be responded in M state, sip is used to indicate the summary of interrupts that need to be responded in S state, and vsip is used to indicate the summary of interrupts that need to be responded in VS state. It seems I misunderstood. Regards, Oscar Jupp
---- Replied Message ----
No. Assuming bit 10 of hideleg is one, vsip.SEIP is an alias of hip.VSEIP. mip.VSEIP is an alias of hip.VSEIP. Bit 10 in mideleg is read-only one, so mip.VSEIP is visible as sip.VSEIP. Therefore both sip.VSEIP and mip.VSEIP will be 1. An implementation really only needs to have one set of state for mip and that will cover all the other *ip CSRs, which are all views into that one set of bits.
|
||||||||||||||||||||||||||||||
|