#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[repr(i32)]
pub enum IllegalInstructionCode
{
IllegalOpcode = 1,
IllegalOperand = 2,
IllegalAddressingMode = 3,
IllegalTrap = 4,
PrivelegedOpcode = 5,
PrivelegedRegister = 6,
CoprocessorError = 7,
InternalStackError = 8,
UnimplementedInstructionAddress = 9,
IllegalBreak = 10,
BundleUpdateInProgress = 11,
}
impl Into<i32> for IllegalInstructionCode
{
#[inline(always)]
fn into(self) -> i32
{
self as i32
}
}
impl Code for IllegalInstructionCode
{
const InclusiveMaximum: Self = IllegalInstructionCode::BundleUpdateInProgress;
#[inline(always)]
fn rehydrate(validated_si_code: i32) -> Self
{
unsafe { transmute(validated_si_code)}
}
}