x86emul: remove dead code
authorJan Beulich <jbeulich@suse.com>
Tue, 16 Aug 2016 13:34:13 +0000 (15:34 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 16 Aug 2016 13:34:13 +0000 (15:34 +0200)
As of commit 989cdfa9b4 ("x86emul: don't special case fetching unsigned
8-bit immediates") the conditional being removed has been always false.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/x86_emulate/x86_emulate.c

index aac3f375aeabfe2324681929549200cc17ff280e..15368a045939cf433f51b6b7779777ac288e8082 100644 (file)
@@ -1855,9 +1855,6 @@ x86_emulate(
                     /* Special case in Grp3: test has immediate operand. */
                     ea.mem.off += (d & ByteOp) ? 1
                         : ((op_bytes == 8) ? 4 : op_bytes);
-                else if ( ext == ext_0f && ((b & 0xf7) == 0xa4) )
-                    /* SHLD/SHRD with immediate byte third operand. */
-                    ea.mem.off++;
                 break;
             case 1:
                 ea.mem.off += insn_fetch_type(int8_t);