2026-02-01T15:58:07-08:00, Drew Fustini <[email protected]>: > From: Kornel Dulęba <[email protected]> > > Implement the srmcfg CSR defined by the Ssqosid ISA extension > (Supervisor-mode Quality of Service ID). The CSR contains two fields: > > - Resource Control ID (RCID) used determine resource allocation > - Monitoring Counter ID (MCID) used to track resource usage > > The CSR is defined for S-mode, so check mstateen0.srmcfg to determine > if s-mode is allowed to access it. In addition, accessing it when V=1 > shall cause a virtual instruction exception. > > Link: > https://github.com/riscv-non-isa/riscv-cbqri/releases/download/v1.0/riscv-cbqri.pdf > Link: https://docs.riscv.org/reference/isa/priv/smstateen.html > Signed-off-by: Kornel Dulęba <[email protected]> > [fustini: rebase on v10.1.50, fix check_srmcfg] > Signed-off-by: Drew Fustini <[email protected]> > ---
Reviewed-by: Radim Krčmář <[email protected]>
