[rtl] Add support for direct mode in mtvec#2044
[rtl] Add support for direct mode in mtvec#2044leesum1 wants to merge 1 commit intolowRISC:masterfrom
Conversation
The Ibex RISC-V core currently lacks support for the direct mode in the mtvec (lowRISC#1419). This commit make mtvec support both vectored and direct mode. To ensure compatibility with existing test programs, the initial value of mtvec.MODE is set to vectored mode.For both vectored mode and direct mode, mtvec.BASE must be 256-byte aligned.
|
Hi @leesum1 , @GregAC , what is the current status on the direct mode support for I am working on porting NuttX to Ibex and the support for the direct mode would be much appreciated as handling of all exceptions/interrupts in NuttX is done in only one routine. |
NO DV NOW,I don't know how to add the DV properly |
The Ibex RISC-V core currently lacks support for the direct mode in the mtvec (#1419). This commit make mtvec support both vectored and direct mode.
To ensure compatibility with existing test programs, the initial value of mtvec.MODE is set to vectored mode.For both vectored mode and direct mode, mtvec.BASE must be 256-byte aligned.
Test
Pass test in rt-thread(direct mode)
Pass
examples/sw/simple_system/hello_test(vectored mode)