diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-07-17 15:36:45 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-07-17 15:36:45 -0700 |
commit | d77d4c04b702fd8af1d268893bd71e7245f9c542 (patch) | |
tree | bebd7ca5997fcb17697ad9a55677e75ca198597f /src/arch | |
parent | c4004482a536f412f5aa8416aa6ca39d8075a89c (diff) | |
download | gem5-d77d4c04b702fd8af1d268893bd71e7245f9c542.tar.xz |
Implement the jz instruction.
--HG--
extra : convert_revision : 7c0bd7ce244f724ac03bbb5fdf770c7a3eba78b4
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/x86/isa/decoder/one_byte_opcodes.isa | 2 | ||||
-rw-r--r-- | src/arch/x86/isa/insts/control_transfer/jump.py | 13 |
2 files changed, 9 insertions, 6 deletions
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,) +}; +''' |