← Home

mscontext

Machine Supervisor Context

Address: 0x7AA (1962) · Privilege: S · Length: XLEN · Writable · Defined by: Sdtrig and S

This optional register is an alias for `scontext`. It is only accessible in S/HS-mode, M-mode and Debug Mode. It is included for backward compatibility with version 0.13.

The encoding of this CSR does not conform to the CSR Address Mapping Convention in the Privileged Spec. It is expected that new implementations will not support this encoding and that new debuggers will not use this CSR if `scontext` is available.

Fields

RV32

31:2423:1615:87:0
DATA

RV64

63:5655:4847:4039:3231:2423:1615:87:0
DATA
BitsFieldAliasDescriptionTypeReset
RV32 [31:0]
RV64 [63:0]
DATASupervisor mode software can write a context number to this register, which can be used to set triggers that only fire in that specific context. An implementation may tie any number of high bits in this field to 0. It’s recommended to implement 16 bits on RV32 and 32 bits on RV64.RW0

Version af3eaf9+cheriot.f635218

Data from the RISC-V Unified Database, copyright RISC-V International and contributors.

CHERIoT extensions from the CHERIoT specification and Sail model, copyright Microsoft and the CHERIoT Platform contributors.

This site is provided as a community resource and is NOT affiliated with nor endorsed by RISC-V International.