diff options
author | iximeow <me@iximeow.net> | 2019-12-15 06:28:00 -0800 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2020-01-12 16:10:13 -0800 |
commit | 5fa4b5b88505179c2514fbd206b71f6c006a6757 (patch) | |
tree | 0d656c3dfe2e99b7af5013e34b149bb97dbee412 /src/display.rs | |
parent | a8ac99c9c22b49bf8d834d7dade0a83cc4197d0a (diff) |
add a slew of system-y instructions, as well as cpu quirks for amd/intel fence instructions
Diffstat (limited to 'src/display.rs')
-rw-r--r-- | src/display.rs | 40 |
1 files changed, 37 insertions, 3 deletions
diff --git a/src/display.rs b/src/display.rs index f6067fb..35cd210 100644 --- a/src/display.rs +++ b/src/display.rs @@ -281,11 +281,11 @@ impl fmt::Display for Opcode { &Opcode::RDTSC => write!(f, "{}", "rdtsc"), &Opcode::RDPMC => write!(f, "{}", "rdpmc"), &Opcode::FXSAVE => write!(f, "{}", "fxsave"), - &Opcode::FXRSTOR => write!(f, "{}", "fxstor"), + &Opcode::FXRSTOR => write!(f, "{}", "fxrstor"), &Opcode::LDMXCSR => write!(f, "{}", "ldmxcsr"), &Opcode::STMXCSR => write!(f, "{}", "stmxcsr"), &Opcode::XSAVE => write!(f, "{}", "xsave"), - &Opcode::XSTOR => write!(f, "{}", "xstor"), + &Opcode::XRSTOR => write!(f, "{}", "xrstor"), &Opcode::XSAVEOPT => write!(f, "{}", "xsaveopt"), &Opcode::LFENCE => write!(f, "{}", "lfence"), &Opcode::MFENCE => write!(f, "{}", "mfence"), @@ -544,6 +544,23 @@ impl fmt::Display for Opcode { &Opcode::BLSI => write!(f, "{}", "blsi"), &Opcode::BLSMSK => write!(f, "{}", "blsmsk"), &Opcode::BLSR => write!(f, "{}", "blsr"), + &Opcode::VMCALL => write!(f, "{}", "vmcall"), + &Opcode::VMLAUNCH => write!(f, "{}", "vmlaunch"), + &Opcode::VMRESUME => write!(f, "{}", "vmresume"), + &Opcode::VMXOFF => write!(f, "{}", "vmxoff"), + &Opcode::MONITOR => write!(f, "{}", "monitor"), + &Opcode::MWAIT => write!(f, "{}", "mwait"), + &Opcode::CLAC => write!(f, "{}", "clac"), + &Opcode::STAC => write!(f, "{}", "stac"), + &Opcode::ENCLS => write!(f, "{}", "encls"), + &Opcode::XGETBV => write!(f, "{}", "xgetbv"), + &Opcode::XSETBV => write!(f, "{}", "xsetbv"), + &Opcode::VMFUNC => write!(f, "{}", "vmfunc"), + &Opcode::XEND => write!(f, "{}", "xend"), + &Opcode::XTEST => write!(f, "{}", "xtest"), + &Opcode::ENCLU => write!(f, "{}", "enclu"), + &Opcode::RDPKRU => write!(f, "{}", "rdpkru"), + &Opcode::WRPKRU => write!(f, "{}", "wrpkru"), &Opcode::VMOVUPS => write!(f, "{}", "vmovups"), &Opcode::VADDPD => write!(f, "{}", "vaddpd"), &Opcode::VADDPS => write!(f, "{}", "vaddps"), @@ -1510,7 +1527,7 @@ impl <T: std::fmt::Write> Colorize<T> for Opcode { Opcode::LDMXCSR | Opcode::STMXCSR | Opcode::XSAVE | - Opcode::XSTOR | + Opcode::XRSTOR | Opcode::XSAVEOPT | Opcode::LFENCE | Opcode::MFENCE | @@ -1550,6 +1567,23 @@ impl <T: std::fmt::Write> Colorize<T> for Opcode { Opcode::UD2E | Opcode::VMREAD | Opcode::VMWRITE | + Opcode::VMCALL | + Opcode::VMLAUNCH | + Opcode::VMRESUME | + Opcode::VMXOFF | + Opcode::MONITOR | + Opcode::MWAIT | + Opcode::CLAC | + Opcode::STAC | + Opcode::ENCLS | + Opcode::XGETBV | + Opcode::XSETBV | + Opcode::VMFUNC | + Opcode::XEND | + Opcode::XTEST | + Opcode::ENCLU | + Opcode::RDPKRU | + Opcode::WRPKRU | Opcode::LAR => { write!(out, "{}", colors.platform_op(self)) } Opcode::VAESDEC | |