Implement the jz instruction.
authorGabe Black <gblack@eecs.umich.edu>
Tue, 17 Jul 2007 22:36:45 +0000 (15:36 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Tue, 17 Jul 2007 22:36:45 +0000 (15:36 -0700)
--HG--
extra : convert_revision : 7c0bd7ce244f724ac03bbb5fdf770c7a3eba78b4

src/arch/x86/isa/decoder/one_byte_opcodes.isa
src/arch/x86/isa/insts/control_transfer/jump.py

index 484f8160d7f59d0f7d68607c83e2ea064cf08cc3..4be83bf54907ed44dcd38715044233abadfca506 100644 (file)
             0x1: jno_Jb();
             0x2: jb_Jb();
             0x3: jnb_Jb();
-            0x4: jz_Jb();
+            0x4: Inst::JZ(Jb);
             0x5: jnz_Jb();
             0x6: jbe_Jb();
             0x7: jnbe_Jb();
index e90e5b12baaa81901d1ec16fd84ac5cfc39366bb..9a013a8234e822a5052d324bea0a710a6332b831 100644 (file)
 #
 # Authors: Gabe Black
 
-microcode = ""
-#let {{
-#    class JMP(Inst):
-#      "GenFault ${new UnimpInstFault}"
-#}};
+microcode = '''
+def macroop JZ_I
+{
+    rdip t1
+    limm t2, imm
+    wrip t1, t2, flags=(CZF,)
+};
+'''