pub enum Rv64ZkndInstruction<Hart>where
Hart: HartConfig,{
Aes64Ds {
rs1: Hart::Reg,
rs2: Hart::Reg,
rd: Hart::Reg,
},
Aes64Dsm {
rs1: Hart::Reg,
rs2: Hart::Reg,
rd: Hart::Reg,
},
Aes64Im {
rs1: Hart::Reg,
rd: Hart::Reg,
/* private fields */
},
Aes64Ks1i {
rs1: Hart::Reg,
rd: Hart::Reg,
rnum: Rv64ZkndKsRnum,
/* private fields */
},
Aes64Ks2 {
rs1: Hart::Reg,
rs2: Hart::Reg,
rd: Hart::Reg,
},
}Expand description
RISC-V RV64 Zknd instructions (AES decryption and key schedule)
Variants§
Aes64Ds
AES final round decryption: InvShiftRows + InvSubBytes, no MixColumns
Aes64Dsm
AES middle round decryption: InvShiftRows + InvSubBytes + InvMixColumns
Aes64Im
AES inverse MixColumns on each 32-bit word of rs1
Aes64Ks1i
AES key schedule step 1 (rnum in 0..=10)
Aes64Ks2
AES key schedule step 2
Trait Implementations§
Source§impl<Hart> Clone for Rv64ZkndInstruction<Hart>
impl<Hart> Clone for Rv64ZkndInstruction<Hart>
Source§fn clone(&self) -> Rv64ZkndInstruction<Hart>
fn clone(&self) -> Rv64ZkndInstruction<Hart>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<Hart> Copy for Rv64ZkndInstruction<Hart>
Source§impl<Hart> Debug for Rv64ZkndInstruction<Hart>
impl<Hart> Debug for Rv64ZkndInstruction<Hart>
§impl<Reg, Hart> Display for Rv64ZkndInstruction<Hart>
impl<Reg, Hart> Display for Rv64ZkndInstruction<Hart>
impl<Hart> Eq for Rv64ZkndInstruction<Hart>
§impl<Reg, Hart> Instruction for Rv64ZkndInstruction<Hart>
impl<Reg, Hart> Instruction for Rv64ZkndInstruction<Hart>
§const IMPLEMENTED_EXTENSIONS: &'static [ImplementedExtension]
const IMPLEMENTED_EXTENSIONS: &'static [ImplementedExtension]
All implemented extensions, including this instruction itself, with their ISA extensions. Read more
§const OWN_ISA_EXTENSIONS: &'static [IsaExtension]
const OWN_ISA_EXTENSIONS: &'static [IsaExtension]
ISA extensions defined by this instruction enum itself, without inherited ones. Read more
§fn try_decode(instruction: u32) -> Option<Self>
fn try_decode(instruction: u32) -> Option<Self>
Try to decode a single valid instruction
Source§const ISA_STRING: &'static str = _
const ISA_STRING: &'static str = _
ISA string as used in the
Tag_RISCV_arch attribute of ELF files, for example,
rv64i2p1_m2p0_zmmul1p0. Read moreSource§fn implements_extension<E>() -> boolwhere
E: Instruction<Hart = Self::Hart>,
fn implements_extension<E>() -> boolwhere
E: Instruction<Hart = Self::Hart>,
Checks whether this instruction implements the given extension, see
Self::IMPLEMENTED_EXTENSIONS for detailsSource§impl<Hart> PartialEq for Rv64ZkndInstruction<Hart>
impl<Hart> PartialEq for Rv64ZkndInstruction<Hart>
impl<Hart> StructuralPartialEq for Rv64ZkndInstruction<Hart>
Auto Trait Implementations§
impl<Hart> Freeze for Rv64ZkndInstruction<Hart>
impl<Hart> RefUnwindSafe for Rv64ZkndInstruction<Hart>
impl<Hart> Send for Rv64ZkndInstruction<Hart>
impl<Hart> Sync for Rv64ZkndInstruction<Hart>
impl<Hart> Unpin for Rv64ZkndInstruction<Hart>
impl<Hart> UnsafeUnpin for Rv64ZkndInstruction<Hart>
impl<Hart> UnwindSafe for Rv64ZkndInstruction<Hart>
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