Date
1 - 1 of 1
RISC-V: mtvec: Vectored Mode
William <wpatty24@...>
Hi all, I would like to add support for "vectored mode" of the Machine Trap-Vector Base-Address Register (mtvec) to the RISC-V architecture — at the SOC level. Some SOCs have already implemented this directly. It makes sense to centralize this feature since it could be reused for all RISC-V SOCs. Additionally, centralizing the feature would allow RISC-V to support Zephyr’s ‘direct’ IRQ feature when vectored mode is used. I’m interested to hear if others agree that this feature would be useful. For background purposes, I’m working on a project that uses the lowRISC Ibex processor. This processor implements the RISC-V Privileged Architecture specification; however, it doesn’t support mtvec direct mode, only vectored mode. Given that the vectored mode is in the RISC-V Privileged Architecture specification, it should be supported within the RISCV_PRIVILEGE SOC family. Here’s what I’m proposing:
However, there is one aspect that’s more complicated:
I appreciate you taking the time to read this. I look forward to any discussion this proposal might create. Thanks, William
|
|