pub enum CpuMode {
Real,
Virtual8086,
Protected16,
Protected32,
Compat16,
Compat32,
Long64,
}Expand description
The execution mode the CPU is in, which decides how instructions are decoded and how addresses are formed.
Variants§
Real
Real-address mode (CR0.PE = 0).
Virtual8086
Virtual-8086 mode (EFLAGS.VM = 1).
Protected16
Protected mode with a 16-bit code segment.
Protected32
Protected mode with a 32-bit code segment.
Compat16
IA-32e compatibility mode, 16-bit code segment.
Compat32
IA-32e compatibility mode, 32-bit code segment.
Long64
64-bit mode.
Implementations§
Trait Implementations§
impl Copy for CpuMode
impl Eq for CpuMode
impl StructuralPartialEq for CpuMode
Auto Trait Implementations§
impl Freeze for CpuMode
impl RefUnwindSafe for CpuMode
impl Send for CpuMode
impl Sync for CpuMode
impl Unpin for CpuMode
impl UnsafeUnpin for CpuMode
impl UnwindSafe for CpuMode
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