HF RL Explorer

Repair a verified behavior in openhwgroup/core-v-verif.

Repair a verified behavior in openhwgroup/core-v-verif.: a task in OriGent-SFT-Data (Harbor dataset). The CV32E40S BSP's default u sw irq handler in cv32e40s/bsp/handlers.S reads mcause and compares its full raw value with the supported exception-code constants. That comparison works for direct…

The task

The CV32E40S BSP's default `u_sw_irq_handler` in `cv32e40s/bsp/handlers.S` reads `mcause` and compares its full raw value with the supported exception-code constants. That comparison works for direct mode (`mtvec[1:0] == 0`) and classic-vectored mode (`mtvec[1:0] == 1`), where an exception is represented by the raw…

Part of henryen/OriGent-SFT-Data.