aboutsummaryrefslogtreecommitdiff
path: root/src/protected_mode
diff options
context:
space:
mode:
authorSamuel Arnold <samuel.arnold@crowdstrike.com>2026-06-12 17:30:30 -0700
committeriximeow <me@iximeow.net>2026-06-21 16:38:50 +0000
commit2146ee62c265cd13ebcc1aaef138dd9e1aec4b72 (patch)
tree1b52e2a66593ee0b2299d39ff1e7845c8f5c3392 /src/protected_mode
parent8fd69da964e1e2056fd3ba2bb4ec8927340b82c6 (diff)
Make invalid instruction constructors actually return invalid instructionsHEADno-gods-no-
As opposed to nops.
Diffstat (limited to 'src/protected_mode')
-rw-r--r--src/protected_mode/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protected_mode/mod.rs b/src/protected_mode/mod.rs
index 6a1d19b..64c1c8d 100644
--- a/src/protected_mode/mod.rs
+++ b/src/protected_mode/mod.rs
@@ -3213,7 +3213,7 @@ impl Instruction {
pub fn invalid() -> Instruction {
Instruction {
prefixes: Prefixes::new(0),
- opcode: Opcode::NOP,
+ opcode: Opcode::Invalid,
mem_size: 0,
regs: [RegSpec::eax(); 4],
scale: 0,