diff options
author | Avi Kivity <avi@redhat.com> | 2010-08-17 04:20:37 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-10-24 04:51:10 -0400 |
commit | f6b33fc5046642b669c3197bf08639172e4cffad (patch) | |
tree | cbe12658b380cef979bf23b03bb44b745d662898 /arch | |
parent | 5c56e1cf7a758c4772e2470b4346a8219ec7f44e (diff) |
KVM: x86 emulator: implement SCAS (opcodes AE, AF)
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kvm/emulate.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index b89a20ec7c9d..09c9210db75d 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c | |||
@@ -2311,7 +2311,7 @@ static struct opcode opcode_table[256] = { | |||
2311 | D(DstAcc | SrcImmByte | ByteOp), D(DstAcc | SrcImm), | 2311 | D(DstAcc | SrcImmByte | ByteOp), D(DstAcc | SrcImm), |
2312 | D(ByteOp | SrcAcc | DstDI | Mov | String), D(SrcAcc | DstDI | Mov | String), | 2312 | D(ByteOp | SrcAcc | DstDI | Mov | String), D(SrcAcc | DstDI | Mov | String), |
2313 | D(ByteOp | SrcSI | DstAcc | Mov | String), D(SrcSI | DstAcc | Mov | String), | 2313 | D(ByteOp | SrcSI | DstAcc | Mov | String), D(SrcSI | DstAcc | Mov | String), |
2314 | D(ByteOp | DstDI | String), D(DstDI | String), | 2314 | D(ByteOp | SrcAcc | DstDI | String), D(SrcAcc | DstDI | String), |
2315 | /* 0xB0 - 0xB7 */ | 2315 | /* 0xB0 - 0xB7 */ |
2316 | X8(D(ByteOp | DstReg | SrcImm | Mov)), | 2316 | X8(D(ByteOp | DstReg | SrcImm | Mov)), |
2317 | /* 0xB8 - 0xBF */ | 2317 | /* 0xB8 - 0xBF */ |
@@ -3046,8 +3046,7 @@ special_insn: | |||
3046 | case 0xac ... 0xad: /* lods */ | 3046 | case 0xac ... 0xad: /* lods */ |
3047 | goto mov; | 3047 | goto mov; |
3048 | case 0xae ... 0xaf: /* scas */ | 3048 | case 0xae ... 0xaf: /* scas */ |
3049 | DPRINTF("Urk! I don't handle SCAS.\n"); | 3049 | goto cmp; |
3050 | goto cannot_emulate; | ||
3051 | case 0xb0 ... 0xbf: /* mov r, imm */ | 3050 | case 0xb0 ... 0xbf: /* mov r, imm */ |
3052 | goto mov; | 3051 | goto mov; |
3053 | case 0xc0 ... 0xc1: | 3052 | case 0xc0 ... 0xc1: |