MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / insn_is_atomic

Function insn_is_atomic

crates/virtual-machine/src/cpu/hazard_unit.rs:81–83  ·  view source on GitHub ↗

True when the instruction is an atomic (acts as load for hazard purposes).

(insn: &DecodedInsn)

Source from the content-addressed store, hash-verified

79/// `fmv.x`/`fclass` (funct5 below) write integer rd; FP-forwarding those starves the consumer.
80pub fn insn_is_fp_dest(insn: &DecodedInsn) -> bool {
81 match insn {
82 DecodedInsn::FLoad { .. } | DecodedInsn::FMac { .. } => true,
83 DecodedInsn::FOp { funct5, .. } => !matches!(*funct5, 0b11000 | 0b10100 | 0b11100),
84 _ => false,
85 }
86}

Callers 1

stage_exMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected