Repair a verified behavior in apache/nuttx.
Repair a verified behavior in apache/nuttx.: a task in OriGent-RL-Data (Harbor dataset). Summary: The ARMv7-A and ARMv7-R exception entry/exit paths save and restore the exception return state (lr/spsr on entry, pc/cpsr on exit) with a slow manual mode-switching sequence instead of the ARMv7 SRS…
The task
Summary: The ARMv7-A and ARMv7-R exception entry/exit paths save and restore the exception return state (lr/spsr on entry, pc/cpsr on exit) with a slow manual mode-switching sequence instead of the ARMv7 SRS and RFE instructions, adding avoidable instruction overhead to every exception round trip.
Part of henryen/OriGent-RL-Data.