HomeFreeBSD

MFC 357313: Trim duplicate CSR swaps from user exceptions.

Description

MFC 357313: Trim duplicate CSR swaps from user exceptions.

The stack pointer is swapped with the sscratch CSR just before the
jump to cpu_exception_handler_user where the first instruction swaps
it again. The two swaps together are a no-op, but the csr swap
instructions can be expensive (e.g. on Bluespec RISC-V cores csr swap
instructions force a full pipeline stall).

Details

Provenance
jhbAuthored on
Parents
rS360856: MFC 357305: Remove unused fields from struct pcb.
Branches
Unknown
Tags
Unknown