pub struct Fence {
pub fm: u8,
pub pred: FenceSet,
pub succ: FenceSet,
pub dest: Reg,
pub src: Reg,
}Expand description
The details of a RISC-V fence instruction.
Fields§
§fm: u8The fm field of the instruction.
0b0000is a normal fence0b1000withrw,rwimplies afence.tso
pred: FenceSetThe predecessor set.
succ: FenceSetThe sucessor set.
dest: RegThe rd field of the instruction. Currently always zero.
src: RegThe rs1 field of the instruction. Currently always zero.
Implementations§
Trait Implementations§
impl Copy for Fence
impl Eq for Fence
impl StructuralPartialEq for Fence
Auto Trait Implementations§
impl Freeze for Fence
impl RefUnwindSafe for Fence
impl Send for Fence
impl Sync for Fence
impl Unpin for Fence
impl UnsafeUnpin for Fence
impl UnwindSafe for Fence
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more