|
Re: Question about mideleg
I was looking figure 4.6 of the priv spec, and it does show STIP as bit 5, not bit 7. Bit 7 is MTIP, and it is invisible to Smode.
That's why the interrupt pending bit shows up in bit 5 if delegated,
I was looking figure 4.6 of the priv spec, and it does show STIP as bit 5, not bit 7. Bit 7 is MTIP, and it is invisible to Smode.
That's why the interrupt pending bit shows up in bit 5 if delegated,
|
By
Allen Baum
·
#1219
·
|
|
Re: Question about mideleg
Comments embedded:
I suspect all implementations disallow it, by forcing those bits in mideleg to 0. OpenSBI does not attempt to delegate those interrupts.[1]
How so? I would expect it to show up in
Comments embedded:
I suspect all implementations disallow it, by forcing those bits in mideleg to 0. OpenSBI does not attempt to delegate those interrupts.[1]
How so? I would expect it to show up in
|
By
Scott Johnson
·
#1218
·
|
|
Re: Question about mideleg
As far as I can tell, an implementation may, but is not required to, disallow it.
If it is delegated, it shows up in the SIP. STIP bit
But, if it is delegated, then it can only be cleared by an
As far as I can tell, an implementation may, but is not required to, disallow it.
If it is delegated, it shows up in the SIP. STIP bit
But, if it is delegated, then it can only be cleared by an
|
By
Allen Baum
·
#1217
·
|
|
Re: Question about mideleg
Priv section 3.1.8 allows for but does not require that MTI be delegatable. So in that sense the answer is yes. But delegating MTI should generally be an unusual thing and some or many
Priv section 3.1.8 allows for but does not require that MTI be delegatable. So in that sense the answer is yes. But delegating MTI should generally be an unusual thing and some or many
|
By
Greg Favor
·
#1216
·
|
|
Question about mideleg
Dear architect,
Can the M interrupt such as MTI be delegated to S mode ?
Regards,
Oscar Jupp
Dear architect,
Can the M interrupt such as MTI be delegated to S mode ?
Regards,
Oscar Jupp
|
By
Oscar Jupp
·
#1215
·
|
|
Re: Svinval fence instructions traps from VU mode
Upon re-reading the relevant section in the hypervisor spec, I believe it is already specified that these should raise virtual-instruction exceptions when executed in VU-mode, hinging on the notion
Upon re-reading the relevant section in the hypervisor spec, I believe it is already specified that these should raise virtual-instruction exceptions when executed in VU-mode, hinging on the notion
|
By
andrew@...
·
#1214
·
|
|
Svinval fence instructions traps from VU mode
What should the behavior of the SFENCE.W.INVAL and SFENCE.INVAL.IR instructions be when executed in VU mode? The spec clearly spells out the behavior of the other S/H Fence/Inval instructions in VU
What should the behavior of the SFENCE.W.INVAL and SFENCE.INVAL.IR instructions be when executed in VU mode? The spec clearly spells out the behavior of the other S/H Fence/Inval instructions in VU
|
By
John Ingalls
·
#1213
·
|
|
AR (Architecture Review) Committee minutes for 11/29/22
We (the AR Committee) will be posting minutes of our (roughly) weekly meetings to discuss ISA issues that have been raised recently to the committee's attention, and to review RISC-V arch extensions
We (the AR Committee) will be posting minutes of our (roughly) weekly meetings to discuss ISA issues that have been raised recently to the committee's attention, and to review RISC-V arch extensions
|
By
Greg Favor
·
#1212
·
|
|
Re: Quetion about xRET instruction
Dear architect,
Thank you for your reply.
I wonder how to emulate the hypervisor extension with trapping SRET on implementations that do not provide it.
Regards,
Oscar Jupp
Dear architect,
Thank you for your reply.
I wonder how to emulate the hypervisor extension with trapping SRET on implementations that do not provide it.
Regards,
Oscar Jupp
|
By
Oscar Jupp
·
#1211
·
|
|
Re: Quetion about xRET instruction
I first read this as TSR meaning "Trap Service Routine",
but now I understand that it is the mstatus.TSR bit.
I first read this as TSR meaning "Trap Service Routine",
but now I understand that it is the mstatus.TSR bit.
|
By
Allen Baum
·
#1210
·
|
|
Re: Quetion about xRET instruction
The ability to execute SRET in M-mode provides M-mode the
facility to trap, using TSR control, a SRET invoked in S-mode,
and after handling the trap to redo the SRET. The SRET invoked
in M-mode is not
The ability to execute SRET in M-mode provides M-mode the
facility to trap, using TSR control, a SRET invoked in S-mode,
and after handling the trap to redo the SRET. The SRET invoked
in M-mode is not
|
By
Ved Shanbhogue
·
#1209
·
|
|
Quetion about xRET instruction
Dear architect,
The spec section 3.3.2 said:
“An xRET instruction can be executed in privilege mode x or higher, where executing a lower-privilege xRET instruction will pop the relevant
Dear architect,
The spec section 3.3.2 said:
“An xRET instruction can be executed in privilege mode x or higher, where executing a lower-privilege xRET instruction will pop the relevant
|
By
Oscar Jupp
·
#1208
·
|
|
Re: Question about supervisor interrupt in M mode
Dear Scott,
Thank you very much!
Regards,
Oscar Jupp
Dear Scott,
Thank you very much!
Regards,
Oscar Jupp
|
By
Oscar Jupp
·
#1207
·
|
|
Re: Question about supervisor interrupt in M mode
Scott pointed out some issues about the way I framed the equations. I tried to make them symmetrical, to be more understandable, but Scott correctly points out there is some redundancy which is
Scott pointed out some issues about the way I framed the equations. I tried to make them symmetrical, to be more understandable, but Scott correctly points out there is some redundancy which is
|
By
Allen Baum
·
#1206
·
|
|
Re: Question about supervisor interrupt in M mode
From the privilege spec: "When a trap occurs in HS-mode or U-mode, it goes to M-mode, unless delegated by medeleg or mideleg, in which case it goes to HS-mode. When a trap occurs in VS-mode or
From the privilege spec: "When a trap occurs in HS-mode or U-mode, it goes to M-mode, unless delegated by medeleg or mideleg, in which case it goes to HS-mode. When a trap occurs in VS-mode or
|
By
Scott Johnson
·
#1205
·
|
|
Re: Question about supervisor interrupt in M mode
Hi Scott,
The spec does say this:
Jeff
Hi Scott,
The spec does say this:
Jeff
|
By
Jeff Scott
·
#1204
·
|
|
Re: Question about supervisor interrupt in M mode
For me, the most important non-obvious thing was realizing that mip+mie are the only two interrupt pending/enable registers. All the other *ip/*ie are [masked and/or shifted] views into mip/mie,
For me, the most important non-obvious thing was realizing that mip+mie are the only two interrupt pending/enable registers. All the other *ip/*ie are [masked and/or shifted] views into mip/mie,
|
By
Scott Johnson
·
#1203
·
|
|
Re: Question about supervisor interrupt in M mode
Dear Scott,
Thank you. I want to ask another question.
When a hart is executing in U mode,doe the interrupt which trap to VS mode can be taken ?
---Original---
From: "Scott
Dear Scott,
Thank you. I want to ask another question.
When a hart is executing in U mode,doe the interrupt which trap to VS mode can be taken ?
---Original---
From: "Scott
|
By
Oscar Jupp
·
#1202
·
|
|
Re: Question about supervisor interrupt in M mode
I agree this took me several readings of the spec to understand this. Pseudo-code would have saved myself and others a lot of time.
Allen, thanks for taking the time to share this!
Can we add
I agree this took me several readings of the spec to understand this. Pseudo-code would have saved myself and others a lot of time.
Allen, thanks for taking the time to share this!
Can we add
|
By
Jeff Scott
·
#1201
·
|
|
Re: Question about supervisor interrupt in M mode
I agree this part of the spec is hard to understand, and requires piecing together several diverse sources within the privileged spec.
I don’t think your clarifications below are quite correct. More
I agree this part of the spec is hard to understand, and requires piecing together several diverse sources within the privileged spec.
I don’t think your clarifications below are quite correct. More
|
By
Scott Johnson
·
#1200
·
|