Struct _ocsd_instr_info

Source
#[repr(C)]
pub struct _ocsd_instr_info {
Show 14 fields pub pe_type: ocsd_arch_profile_t, pub isa: ocsd_isa, pub instr_addr: ocsd_vaddr_t, pub opcode: u32, pub dsb_dmb_waypoints: u8, pub wfi_wfe_branch: u8, pub type_: ocsd_instr_type, pub branch_addr: ocsd_vaddr_t, pub next_isa: ocsd_isa, pub instr_size: u8, pub is_conditional: u8, pub is_link: u8, pub thumb_it_conditions: u8, pub sub_type: ocsd_instr_subtype,
}
Expand description

Instruction decode request structure.

Used in IInstrDecode interface.

Caller fills in the input: information, callee then fills in the decoder: information.

Fields§

§pe_type: ocsd_arch_profile_t

< input: Core Arch and profile

§isa: ocsd_isa

< Input: Current ISA.

§instr_addr: ocsd_vaddr_t

< Input: Instruction address.

§opcode: u32

< Input: Opcode at address. 16 bit opcodes will use MS 16bits of parameter.

§dsb_dmb_waypoints: u8

< Input: DMB and DSB are waypoints

§wfi_wfe_branch: u8

< Input: WFI, WFE classed as direct branches

§type_: ocsd_instr_type

< Decoder: Current instruction type.

§branch_addr: ocsd_vaddr_t

< Decoder: Calculated address of branch instrcution (direct branches only)

§next_isa: ocsd_isa

< Decoder: ISA for next intruction.

§instr_size: u8

< Decoder : size of the decoded instruction

§is_conditional: u8

< Decoder : set to 1 if this instruction is conditional

§is_link: u8

< Decoder : is a branch with link instruction

§thumb_it_conditions: u8

< Decoder : return number of following instructions set with conditions by this Thumb IT instruction

§sub_type: ocsd_instr_subtype

< Decoder : current instruction sub-type if known

Trait Implementations§

Source§

impl Clone for _ocsd_instr_info

Source§

fn clone(&self) -> _ocsd_instr_info

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for _ocsd_instr_info

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for _ocsd_instr_info

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.