KVM: x86 emulator: Use opcode::execute for Group 1, CMPS and SCAS
authorTakuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Sat, 23 Apr 2011 09:48:02 +0000 (18:48 +0900)
committerAvi Kivity <avi@redhat.com>
Sun, 22 May 2011 12:39:40 +0000 (08:39 -0400)
commitd67fc27ae2bdc2d2fb6c8ec4238a12b502b95cc7
tree3a5f9d3eef0a94587516eb139c13162e33d6443c
parent6e2ca7d1802bf8ed9908435e34daa116662e7790
KVM: x86 emulator: Use opcode::execute for Group 1, CMPS and SCAS

The following instructions are changed to use opcode::execute.

Group 1 (80-83)
  ADD (00-05), OR (08-0D), ADC (10-15), SBB (18-1D), AND (20-25),
  SUB (28-2D), XOR (30-35), CMP (38-3D)

CMPS (A6-A7), SCAS (AE-AF)

The last two do the same as CMP in the emulator, so em_cmp() is used.

Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/emulate.c