From 674b6436b0f1d77dc88086e32b01d10d3889cfe4 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Thu, 18 Oct 2007 22:37:08 -0700 Subject: [PATCH] X86: Implemented the jrcx instruction. --HG-- extra : convert_revision : d738015ff33449e55d8f1624c8467c1bba193e16 --- src/arch/x86/isa/decoder/one_byte_opcodes.isa | 2 +- .../general_purpose/control_transfer/conditional_jump.py | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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,) +}; ''' -- 2.30.2