From: Gabe Black Date: Fri, 19 Oct 2007 05:37:08 +0000 (-0700) Subject: X86: Implemented the jrcx instruction. X-Git-Tag: m5_2.0_beta4~50 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=674b6436b0f1d77dc88086e32b01d10d3889cfe4;p=gem5.git X86: Implemented the jrcx instruction. --HG-- extra : convert_revision : d738015ff33449e55d8f1624c8467c1bba193e16 --- 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,) +}; '''