From: Gabe Black Date: Tue, 17 Jul 2007 22:36:45 +0000 (-0700) Subject: Implement the jz instruction. X-Git-Tag: m5_2.0_beta4~297^2~48 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d77d4c04b702fd8af1d268893bd71e7245f9c542;p=gem5.git Implement the jz instruction. --HG-- extra : convert_revision : 7c0bd7ce244f724ac03bbb5fdf770c7a3eba78b4 --- diff --git a/src/arch/x86/isa/decoder/one_byte_opcodes.isa b/src/arch/x86/isa/decoder/one_byte_opcodes.isa index 484f8160d..4be83bf54 100644 --- a/src/arch/x86/isa/decoder/one_byte_opcodes.isa +++ b/src/arch/x86/isa/decoder/one_byte_opcodes.isa @@ -263,7 +263,7 @@ 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(); diff --git a/src/arch/x86/isa/insts/control_transfer/jump.py b/src/arch/x86/isa/insts/control_transfer/jump.py index e90e5b12b..9a013a823 100644 --- a/src/arch/x86/isa/insts/control_transfer/jump.py +++ b/src/arch/x86/isa/insts/control_transfer/jump.py @@ -53,8 +53,11 @@ # # 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,) +}; +'''