Virtual supervisor timer compare
Virtual supervisor timer compare register.
When `menvcfg.STCE` and `henvcfg.STCE` are set, `vstimecmp` is operational and provides VS-mode with a CSR-based timer interrupt facility.
| 63:56 | 55:48 | 47:40 | 39:32 | 31:24 | 23:16 | 15:8 | 7:0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TIME | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Bits | Field | Alias | Description | Type | Reset |
|---|---|---|---|---|---|
| [63:0] | TIME | Time compare value for virtual supervisor timer interrupts. | RW | UNDEFINED_LEGAL |
if (CSR[menvcfg].STCE == 1'b0 || CSR[mcounteren].TM == 1'b0) {
raise(ExceptionCode::IllegalInstruction, mode(), $encoding);
} else if (CSR[henvcfg].STCE == 1'b0 || CSR[hcounteren].TM == 1'b0) {
raise(ExceptionCode::VirtualInstruction, mode(), $encoding);
}
return CSR[vstimecmp].TIME;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.