aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/emulate.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2010-08-26 04:56:13 -0400
committerAvi Kivity <avi@redhat.com>2010-10-24 04:51:41 -0400
commit739ae406068211b235b488f247aab349e486c382 (patch)
tree7d5a65d1c6e8abb6e8353bf693f2a78acf6e6874 /arch/x86/kvm/emulate.c
parentd269e3961a65bbf6a76a8dc37b70cb578216e2c0 (diff)
KVM: x86 emulator: simplify instruction decode flags for opcodes 0F 00-FF
Use the new byte/word dual opcode decode. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/kvm/emulate.c')
-rw-r--r--arch/x86/kvm/emulate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
index b43572afce3c..58e715cb5172 100644
--- a/arch/x86/kvm/emulate.c
+++ b/arch/x86/kvm/emulate.c
@@ -2534,7 +2534,7 @@ static struct opcode twobyte_table[256] = {
2534 D(DstMem | SrcReg | Src2CL | ModRM), 2534 D(DstMem | SrcReg | Src2CL | ModRM),
2535 D(ModRM), I(DstReg | SrcMem | ModRM, em_imul), 2535 D(ModRM), I(DstReg | SrcMem | ModRM, em_imul),
2536 /* 0xB0 - 0xB7 */ 2536 /* 0xB0 - 0xB7 */
2537 D(ByteOp | DstMem | SrcReg | ModRM | Lock), D(DstMem | SrcReg | ModRM | Lock), 2537 D2bv(DstMem | SrcReg | ModRM | Lock),
2538 D(DstReg | SrcMemFAddr | ModRM), D(DstMem | SrcReg | ModRM | BitOp | Lock), 2538 D(DstReg | SrcMemFAddr | ModRM), D(DstMem | SrcReg | ModRM | BitOp | Lock),
2539 D(DstReg | SrcMemFAddr | ModRM), D(DstReg | SrcMemFAddr | ModRM), 2539 D(DstReg | SrcMemFAddr | ModRM), D(DstReg | SrcMemFAddr | ModRM),
2540 D(ByteOp | DstReg | SrcMem | ModRM | Mov), D(DstReg | SrcMem16 | ModRM | Mov), 2540 D(ByteOp | DstReg | SrcMem | ModRM | Mov), D(DstReg | SrcMem16 | ModRM | Mov),
@@ -2544,7 +2544,7 @@ static struct opcode twobyte_table[256] = {
2544 D(DstReg | SrcMem | ModRM), D(DstReg | SrcMem | ModRM), 2544 D(DstReg | SrcMem | ModRM), D(DstReg | SrcMem | ModRM),
2545 D(ByteOp | DstReg | SrcMem | ModRM | Mov), D(DstReg | SrcMem16 | ModRM | Mov), 2545 D(ByteOp | DstReg | SrcMem | ModRM | Mov), D(DstReg | SrcMem16 | ModRM | Mov),
2546 /* 0xC0 - 0xCF */ 2546 /* 0xC0 - 0xCF */
2547 D(ByteOp | DstMem | SrcReg | ModRM | Lock), D(DstMem | SrcReg | ModRM | Lock), 2547 D2bv(DstMem | SrcReg | ModRM | Lock),
2548 N, D(DstMem | SrcReg | ModRM | Mov), 2548 N, D(DstMem | SrcReg | ModRM | Mov),
2549 N, N, N, GD(0, &group9), 2549 N, N, N, GD(0, &group9),
2550 N, N, N, N, N, N, N, N, 2550 N, N, N, N, N, N, N, N,