Commit f6b33fc5 authored by Avi Kivity's avatar Avi Kivity

KVM: x86 emulator: implement SCAS (opcodes AE, AF)

Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent 5c56e1cf
...@@ -2311,7 +2311,7 @@ static struct opcode opcode_table[256] = { ...@@ -2311,7 +2311,7 @@ static struct opcode opcode_table[256] = {
D(DstAcc | SrcImmByte | ByteOp), D(DstAcc | SrcImm), D(DstAcc | SrcImmByte | ByteOp), D(DstAcc | SrcImm),
D(ByteOp | SrcAcc | DstDI | Mov | String), D(SrcAcc | DstDI | Mov | String), D(ByteOp | SrcAcc | DstDI | Mov | String), D(SrcAcc | DstDI | Mov | String),
D(ByteOp | SrcSI | DstAcc | Mov | String), D(SrcSI | DstAcc | Mov | String), D(ByteOp | SrcSI | DstAcc | Mov | String), D(SrcSI | DstAcc | Mov | String),
D(ByteOp | DstDI | String), D(DstDI | String), D(ByteOp | SrcAcc | DstDI | String), D(SrcAcc | DstDI | String),
/* 0xB0 - 0xB7 */ /* 0xB0 - 0xB7 */
X8(D(ByteOp | DstReg | SrcImm | Mov)), X8(D(ByteOp | DstReg | SrcImm | Mov)),
/* 0xB8 - 0xBF */ /* 0xB8 - 0xBF */
...@@ -3046,8 +3046,7 @@ x86_emulate_insn(struct x86_emulate_ctxt *ctxt) ...@@ -3046,8 +3046,7 @@ x86_emulate_insn(struct x86_emulate_ctxt *ctxt)
case 0xac ... 0xad: /* lods */ case 0xac ... 0xad: /* lods */
goto mov; goto mov;
case 0xae ... 0xaf: /* scas */ case 0xae ... 0xaf: /* scas */
DPRINTF("Urk! I don't handle SCAS.\n"); goto cmp;
goto cannot_emulate;
case 0xb0 ... 0xbf: /* mov r, imm */ case 0xb0 ... 0xbf: /* mov r, imm */
goto mov; goto mov;
case 0xc0 ... 0xc1: case 0xc0 ... 0xc1:
......
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