riscv / riscv-fast-interrupt

Proposal for a RISC-V Core-Local Interrupt Controller (CLIC)
https://jira.riscv.org/browse/RVG-63
Creative Commons Attribution 4.0 International
247 stars 49 forks source link

Inconsistency on which fields are zeroed when switching to CLINT mode #418

Open Timmmm opened 1 month ago

Timmmm commented 1 month ago

For backwards compatibility in implementations supporting both CLINT and CLIC modes, when switching to CLINT mode the new CLIC xcause.xpil state field is zeroed.

For backwards compatibility in systems supporting both CLINT and CLIC modes, when switching to CLINT mode the new CLIC xcause state fields (xinhv and xpil) are zeroed.

I assume the latter is the correct one.