From e88dc7fc6d329697908a54d14d0e53f40d038655 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 20 Aug 2015 04:28:39 -0400 Subject: emitter: Remove unused code --- src/common/x64/emitter.cpp | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'src/common/x64/emitter.cpp') diff --git a/src/common/x64/emitter.cpp b/src/common/x64/emitter.cpp index 99c682a11..1229d0654 100644 --- a/src/common/x64/emitter.cpp +++ b/src/common/x64/emitter.cpp @@ -512,30 +512,6 @@ void XEmitter::SetJumpTarget(const FixupBranch& branch) } } -// INC/DEC considered harmful on newer CPUs due to partial flag set. -// Use ADD, SUB instead. - -/* -void XEmitter::INC(int bits, OpArg arg) -{ - if (arg.IsImm()) ASSERT_MSG(0, "INC - Imm argument"); - arg.operandReg = 0; - if (bits == 16) {Write8(0x66);} - arg.WriteRex(this, bits, bits); - Write8(bits == 8 ? 0xFE : 0xFF); - arg.WriteRest(this); -} -void XEmitter::DEC(int bits, OpArg arg) -{ - if (arg.IsImm()) ASSERT_MSG(0, "DEC - Imm argument"); - arg.operandReg = 1; - if (bits == 16) {Write8(0x66);} - arg.WriteRex(this, bits, bits); - Write8(bits == 8 ? 0xFE : 0xFF); - arg.WriteRest(this); -} -*/ - //Single byte opcodes //There is no PUSHAD/POPAD in 64-bit mode. void XEmitter::INT3() {Write8(0xCC);} -- cgit v1.2.3