Commit c034da8b authored by Wei Yongjun's avatar Wei Yongjun Committed by Avi Kivity

KVM: x86 emulator: using SrcOne for instruction d0/d1 decoding

Using SrcOne for instruction d0/d1 decoding.
Signed-off-by: default avatarWei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent 36089fed
...@@ -2251,7 +2251,7 @@ static struct opcode opcode_table[256] = { ...@@ -2251,7 +2251,7 @@ static struct opcode opcode_table[256] = {
N, N, N, D(ImplicitOps | Stack), N, N, N, D(ImplicitOps | Stack),
D(ImplicitOps), D(SrcImmByte), D(ImplicitOps | No64), D(ImplicitOps), D(ImplicitOps), D(SrcImmByte), D(ImplicitOps | No64), D(ImplicitOps),
/* 0xD0 - 0xD7 */ /* 0xD0 - 0xD7 */
D(ByteOp | DstMem | SrcImplicit | ModRM), D(DstMem | SrcImplicit | ModRM), D(ByteOp | DstMem | SrcOne | ModRM), D(DstMem | SrcOne | ModRM),
D(ByteOp | DstMem | SrcImplicit | ModRM), D(DstMem | SrcImplicit | ModRM), D(ByteOp | DstMem | SrcImplicit | ModRM), D(DstMem | SrcImplicit | ModRM),
N, N, N, N, N, N, N, N,
/* 0xD8 - 0xDF */ /* 0xD8 - 0xDF */
...@@ -3046,7 +3046,6 @@ x86_emulate_insn(struct x86_emulate_ctxt *ctxt) ...@@ -3046,7 +3046,6 @@ x86_emulate_insn(struct x86_emulate_ctxt *ctxt)
goto done; goto done;
break; break;
case 0xd0 ... 0xd1: /* Grp2 */ case 0xd0 ... 0xd1: /* Grp2 */
c->src.val = 1;
emulate_grp2(ctxt); emulate_grp2(ctxt);
break; break;
case 0xd2 ... 0xd3: /* Grp2 */ case 0xd2 ... 0xd3: /* Grp2 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment