summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/emulate.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2010-07-29 12:11:43 (GMT)
committerAvi Kivity <avi@redhat.com>2010-10-24 08:50:14 (GMT)
commit591c9d20a37db54c7234742bff925cb2e6fdca4b (patch)
tree6690b53c92fd19800968ac4404e597f4e9f5e687 /arch/x86/kvm/emulate.c
parentee70ea30ee81dda2cf5fbc2e143ce3cb303187ce (diff)
downloadlinux-fsl-qoriq-591c9d20a37db54c7234742bff925cb2e6fdca4b.tar.xz
KVM: x86 emulator: convert group 4 to new style
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.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
index a0606a4..8bb74ea 100644
--- a/arch/x86/kvm/emulate.c
+++ b/arch/x86/kvm/emulate.c
@@ -105,7 +105,7 @@
#define X16(x) X8(x), X8(x)
enum {
- NoGrp, Group4, Group5, Group7, Group8, Group9,
+ NoGrp, Group5, Group7, Group8, Group9,
};
struct opcode {
@@ -140,10 +140,12 @@ static struct opcode group3[] = {
X4(D(Undefined)),
};
-static struct opcode group_table[] = {
- [Group4*8] =
+static struct opcode group4[] = {
D(ByteOp | DstMem | SrcNone | ModRM | Lock), D(ByteOp | DstMem | SrcNone | ModRM | Lock),
N, N, N, N, N, N,
+};
+
+static struct opcode group_table[] = {
[Group5*8] =
D(DstMem | SrcNone | ModRM | Lock), D(DstMem | SrcNone | ModRM | Lock),
D(SrcMem | ModRM | Stack), N,
@@ -281,7 +283,7 @@ static struct opcode opcode_table[256] = {
D(ImplicitOps | Priv), D(ImplicitOps), G(ByteOp, group3), G(0, group3),
/* 0xF8 - 0xFF */
D(ImplicitOps), N, D(ImplicitOps), D(ImplicitOps),
- D(ImplicitOps), D(ImplicitOps), D(Group | Group4), D(Group | Group5),
+ D(ImplicitOps), D(ImplicitOps), G(0, group4), D(Group | Group5),
};
static struct opcode twobyte_table[256] = {