WRS.STO
Wait on Reservation Set (Short Time-Out)
WRS.STO
Stalls the hart until a reservation set is invalid or a very short implementation-defined timeout expires.
Encoding
Binary Layout
00000001110100000000000001110011
31:0
Operands
Related
More in Zawrs
Reference
View in RISC-V Unprivileged ISA Specification ↗
RISC-V ISA Manual
Description
WRS.STO (Wait on Reservation Set, Short Timeout) behaves like WRS.NTO but may optionally time out after an implementation-defined short period, allowing the hart to poll the reservation set.
Operation
while (reservation_valid() && !short_timeout) { pause(); }