//! The architectural state an instruction reads as it executes.
usecrate::arch::Hart;usecrate::isa::csr::CsrAddr;/// What executing an instruction may read, whichever engine executes it:
/// the hart, its CSRs as software sees them, and whether to trace.
pubtraitArchState{/// The hart executing the instruction.
fnhart(&self)->&Hart;/// A CSR's value, as a CSR instruction reads it.
fncsr_read(&self, addr: CsrAddr)->u64;/// The value a CSR read-modify-write starts from.
fncsr_read_for_update(&self, addr: CsrAddr)->u64;/// Whether instruction tracing is on.
fntracing(&self)->bool;}