diff options
author | Avi Kivity <avi@redhat.com> | 2010-08-26 04:56:08 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-10-24 04:51:37 -0400 |
commit | 48fe67b5f7f71bb954dc97b18096cef12f6618b4 (patch) | |
tree | ea67f9ec350ae91c3f1318d93e8ee4499288b2e9 /arch/x86/kvm/emulate.c | |
parent | 5315fbb223086c078c979d16734844ccff12f087 (diff) |
KVM: x86 emulator: simplify string instruction decode flags
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.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index 277e667a382f..749322e1d957 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c | |||
@@ -2429,8 +2429,8 @@ static struct opcode opcode_table[256] = { | |||
2429 | I(DstReg | SrcMem | ModRM | Src2Imm, em_imul_3op), | 2429 | I(DstReg | SrcMem | ModRM | Src2Imm, em_imul_3op), |
2430 | I(SrcImmByte | Mov | Stack, em_push), | 2430 | I(SrcImmByte | Mov | Stack, em_push), |
2431 | I(DstReg | SrcMem | ModRM | Src2ImmByte, em_imul_3op), | 2431 | I(DstReg | SrcMem | ModRM | Src2ImmByte, em_imul_3op), |
2432 | D(DstDI | ByteOp | Mov | String), D(DstDI | Mov | String), /* insb, insw/insd */ | 2432 | D2bv(DstDI | Mov | String), /* insb, insw/insd */ |
2433 | D(SrcSI | ByteOp | ImplicitOps | String), D(SrcSI | ImplicitOps | String), /* outsb, outsw/outsd */ | 2433 | D2bv(SrcSI | ImplicitOps | String), /* outsb, outsw/outsd */ |
2434 | /* 0x70 - 0x7F */ | 2434 | /* 0x70 - 0x7F */ |
2435 | X16(D(SrcImmByte)), | 2435 | X16(D(SrcImmByte)), |
2436 | /* 0x80 - 0x87 */ | 2436 | /* 0x80 - 0x87 */ |
@@ -2454,13 +2454,12 @@ static struct opcode opcode_table[256] = { | |||
2454 | /* 0xA0 - 0xA7 */ | 2454 | /* 0xA0 - 0xA7 */ |
2455 | D(ByteOp | DstAcc | SrcMem | Mov | MemAbs), D(DstAcc | SrcMem | Mov | MemAbs), | 2455 | D(ByteOp | DstAcc | SrcMem | Mov | MemAbs), D(DstAcc | SrcMem | Mov | MemAbs), |
2456 | D(ByteOp | DstMem | SrcAcc | Mov | MemAbs), D(DstMem | SrcAcc | Mov | MemAbs), | 2456 | D(ByteOp | DstMem | SrcAcc | Mov | MemAbs), D(DstMem | SrcAcc | Mov | MemAbs), |
2457 | D(ByteOp | SrcSI | DstDI | Mov | String), D(SrcSI | DstDI | Mov | String), | 2457 | D2bv(SrcSI | DstDI | Mov | String), D2bv(SrcSI | DstDI | String), |
2458 | D(ByteOp | SrcSI | DstDI | String), D(SrcSI | DstDI | String), | ||
2459 | /* 0xA8 - 0xAF */ | 2458 | /* 0xA8 - 0xAF */ |
2460 | D(DstAcc | SrcImmByte | ByteOp), D(DstAcc | SrcImm), | 2459 | D(DstAcc | SrcImmByte | ByteOp), D(DstAcc | SrcImm), |
2461 | D(ByteOp | SrcAcc | DstDI | Mov | String), D(SrcAcc | DstDI | Mov | String), | 2460 | D2bv(SrcAcc | DstDI | Mov | String), |
2462 | D(ByteOp | SrcSI | DstAcc | Mov | String), D(SrcSI | DstAcc | Mov | String), | 2461 | D2bv(SrcSI | DstAcc | Mov | String), |
2463 | D(ByteOp | SrcAcc | DstDI | String), D(SrcAcc | DstDI | String), | 2462 | D2bv(SrcAcc | DstDI | String), |
2464 | /* 0xB0 - 0xB7 */ | 2463 | /* 0xB0 - 0xB7 */ |
2465 | X8(D(ByteOp | DstReg | SrcImm | Mov)), | 2464 | X8(D(ByteOp | DstReg | SrcImm | Mov)), |
2466 | /* 0xB8 - 0xBF */ | 2465 | /* 0xB8 - 0xBF */ |