RISC-V: fix usage of special register when interrupts are enabled
RISC-V: fix usage of special register when interrupts are enabled

espressif/esp-idf,espressif/esp-idf,espressif/esp-idf,espressif/esp-idf