summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/arch/x86/isa/decoder/one_byte_opcodes.isa2
-rw-r--r--src/arch/x86/isa/insts/control_transfer/jump.py7
2 files changed, 8 insertions, 1 deletions
diff --git a/src/arch/x86/isa/decoder/one_byte_opcodes.isa b/src/arch/x86/isa/decoder/one_byte_opcodes.isa
index 4be83bf54..546577662 100644
--- a/src/arch/x86/isa/decoder/one_byte_opcodes.isa
+++ b/src/arch/x86/isa/decoder/one_byte_opcodes.isa
@@ -264,7 +264,7 @@
0x2: jb_Jb();
0x3: jnb_Jb();
0x4: Inst::JZ(Jb);
- 0x5: jnz_Jb();
+ 0x5: Inst::JNZ(Jb);
0x6: jbe_Jb();
0x7: jnbe_Jb();
}
diff --git a/src/arch/x86/isa/insts/control_transfer/jump.py b/src/arch/x86/isa/insts/control_transfer/jump.py
index 9a013a823..15f00e083 100644
--- a/src/arch/x86/isa/insts/control_transfer/jump.py
+++ b/src/arch/x86/isa/insts/control_transfer/jump.py
@@ -60,4 +60,11 @@ def macroop JZ_I
limm t2, imm
wrip t1, t2, flags=(CZF,)
};
+
+def macroop JNZ_I
+{
+ rdip t1
+ limm t2, imm
+ wrip t1, t2, flags=(nCZF,)
+};
'''