In v1.9.1 privileged architecture specification, section 3.1.13 (mip and mie), it says:
"........, while mie is the corresponding XLEN-bit read/write register containing interrupt enable bits."
....
....
"There is a separate external interrupt-enable bit, named MEIE, HEIE, SEIE, and UEIE for
M-mode, H-mode, S-mode, and U-mode external interrupts respectively."
So from these phrases, I assume that mie.MEIE (mie(11)) can be written by a CSR write instruction.
However, when I check the source code of spike, it seems that mie.MEIE cannot be written. (processor.cc, line:341, 292, 293)
Can mie.MEIE be written by a CSR write instruction?
If the answer is NO, then how mie.MEIE is enabled/disabled for PLIC external interrupts?
Thanks!
Vincent