ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 913 microarchs · 15,555 chips · 105 sources
Arch:
Tier:

Zawrs

T1 riscv feature feature
Wait-on-Reservation-Set Instructions
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon Scopev1.0.0 (ratified)
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db

Summary

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:

Syntax / Encoding

Zawrs v1.0.0 (ratified)

Reference Notes

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.