提交 a4d4a7c1 编写于 作者: A Avi Kivity

KVM: x86 emulator: fix group 11 decoding for reg != 0

These are all undefined.
Signed-off-by: NAvi Kivity <avi@redhat.com>
上级 b9eac5f4
...@@ -2449,6 +2449,10 @@ static struct group_dual group9 = { { ...@@ -2449,6 +2449,10 @@ static struct group_dual group9 = { {
N, N, N, N, N, N, N, N, N, N, N, N, N, N, N, N,
} }; } };
static struct opcode group11[] = {
I(DstMem | SrcImm | ModRM | Mov, em_mov), X7(D(Undefined)),
};
static struct opcode opcode_table[256] = { static struct opcode opcode_table[256] = {
/* 0x00 - 0x07 */ /* 0x00 - 0x07 */
D6ALU(Lock), D6ALU(Lock),
...@@ -2525,7 +2529,7 @@ static struct opcode opcode_table[256] = { ...@@ -2525,7 +2529,7 @@ static struct opcode opcode_table[256] = {
I(ImplicitOps | Stack | SrcImmU16, em_ret_near_imm), I(ImplicitOps | Stack | SrcImmU16, em_ret_near_imm),
D(ImplicitOps | Stack), D(ImplicitOps | Stack),
D(DstReg | SrcMemFAddr | ModRM | No64), D(DstReg | SrcMemFAddr | ModRM | No64), D(DstReg | SrcMemFAddr | ModRM | No64), D(DstReg | SrcMemFAddr | ModRM | No64),
I2bv(DstMem | SrcImm | ModRM | Mov, em_mov), G(ByteOp, group11), G(0, group11),
/* 0xC8 - 0xCF */ /* 0xC8 - 0xCF */
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),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册