Wait-on-Reservation-Set Instructions
Type: unprivileged
| Version | State | Ratified |
|---|---|---|
| 1.0.0 | ratified | 2022-11 |
The `Zawrs` extension defines a pair of instructions to be used in polling loops that allows a core to enter a low-power state and wait on a store to a memory location. Waiting for a memory location to be updated is a common pattern in many use cases such as:
* Contenders for a lock waiting for the lock variable to be updated. * Consumers waiting on the tail of an empty queue for the producer to queue work/data. The producer may be code executing on a RISC-V hart, an accelerator device, an external I/O agent. * Code waiting on a flag to be set in memory indicative of an event occurring. For example, software on a RISC-V hart may wait on a "done" flag to be set in memory by an accelerator device indicating completion of a job previously submitted to the device.
wrs.nto — Wait-on-Reservation-Set-with-No-Timeoutwrs.sto — Wait-on-Reservation-Set-with-Short-TimeoutVersion 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.