diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-10-18 22:37:08 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-10-18 22:37:08 -0700 |
commit | 674b6436b0f1d77dc88086e32b01d10d3889cfe4 (patch) | |
tree | 48a7ed955256534452d878eddbfd817de243b79d /src | |
parent | 0ffb317ff9eeddbe07216ecba04b69979505c542 (diff) | |
download | gem5-674b6436b0f1d77dc88086e32b01d10d3889cfe4.tar.xz |
X86: Implemented the jrcx instruction.
--HG--
extra : convert_revision : d738015ff33449e55d8f1624c8467c1bba193e16
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/x86/isa/decoder/one_byte_opcodes.isa | 2 | ||||
-rw-r--r-- | src/arch/x86/isa/insts/general_purpose/control_transfer/conditional_jump.py | 7 |
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 da7867401..f49059de2 100644 --- a/src/arch/x86/isa/decoder/one_byte_opcodes.isa +++ b/src/arch/x86/isa/decoder/one_byte_opcodes.isa @@ -475,7 +475,7 @@ 0x0: loopne_Jb(); 0x1: loope_Jb(); 0x2: loop_Jb(); - 0x3: jcxz_or_jecx_or_jrcx(); + 0x3: Inst::JRCX(Jb); 0x4: in_Al_Ib(); 0x5: in_eAX_Ib(); 0x6: out_Ib_Al(); diff --git a/src/arch/x86/isa/insts/general_purpose/control_transfer/conditional_jump.py b/src/arch/x86/isa/insts/general_purpose/control_transfer/conditional_jump.py index b04ca97d6..c2856e630 100644 --- a/src/arch/x86/isa/insts/general_purpose/control_transfer/conditional_jump.py +++ b/src/arch/x86/isa/insts/general_purpose/control_transfer/conditional_jump.py @@ -213,4 +213,11 @@ def macroop JNO_I limm t2, imm wrip t1, t2, flags=(nCOF,) }; + +def macroop JRCX_I +{ + rdip t1 + add t0, t0, rcx, flags=(EZF,), dataSize=asz + wripi t1, imm, flags=(CEZF,) +}; ''' |