From: Wei Yongjun Date: Thu, 17 Jun 2010 09:33:55 +0000 (+0800) Subject: KVM: x86 emulator: fix group3 instruction decoding X-Git-Tag: v2.6.36-rc1~580^2~74 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d5993d63f2bac75b89e171a7098044ec4bc701f;p=pandora-kernel.git KVM: x86 emulator: fix group3 instruction decoding Group 3 instruction with ModRM reg field as 001 is defined as test instruction under AMD arch, and emulate_grp3() is ready for emulate it, so fix the decoding. static inline int emulate_grp3(...) { ... switch (c->modrm_reg) { case 0 ... 1: /* test */ emulate_2op_SrcV("test", c->src, c->dst, ctxt->eflags); ... } Signed-off-by: Wei Yongjun Signed-off-by: Avi Kivity --- Reading git-diff-tree failed