mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
CSR_PRV_MODE is only defined for a subset of RISC-V targets. Targets that lack it (e.g. esp32h21, esp32h4, esp32s31) caused an assembler error. Fall back to returning -1 (unsupported) when the CSR is not defined. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>