According to the RISC-V Privileged Specification, the interrupt encoding for NMI is implementation-defined, meaning NMI must have a corresponding cause code. Since this cause code exists, an itrigger could theoretically match an NMI interrupt by configuring tdata2. Why then is there a dedicated nmi field in tdata1 for itrigger?
thanks