summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2010-07-29 12:11:41 (GMT)
committerAvi Kivity <avi@redhat.com>2010-10-24 08:50:12 (GMT)
commit99880c5cd54b28a26fd6ed949f545cc0075e4393 (patch)
tree13effdac6cc3ad57ea524ccb50c1cc000ac4f870
parent5b92b5faff8ec66c75f3716ae7c4bf1e2b99d7e6 (diff)
downloadlinux-fsl-qoriq-99880c5cd54b28a26fd6ed949f545cc0075e4393.tar.xz
KVM: x86 emulator: convert group 1A to new style
Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
-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 6cc4af1..618fdc8 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, Group1A, Group3, Group4, Group5, Group7, Group8, Group9,
+ NoGrp, Group3, Group4, Group5, Group7, Group8, Group9,
};
struct opcode {
@@ -130,9 +130,11 @@ static struct opcode group1[] = {
X7(D(Lock)), N
};
-static struct opcode group_table[] = {
- [Group1A*8] =
+static struct opcode group1A[] = {
D(DstMem | SrcNone | ModRM | Mov | Stack), N, N, N, N, N, N, N,
+};
+
+static struct opcode group_table[] = {
[Group3*8] =
D(DstMem | SrcImm | ModRM), D(DstMem | SrcImm | ModRM),
D(DstMem | SrcNone | ModRM | Lock), D(DstMem | SrcNone | ModRM | Lock),
@@ -231,7 +233,7 @@ static struct opcode opcode_table[256] = {
D(ByteOp | DstMem | SrcReg | ModRM | Mov), D(DstMem | SrcReg | ModRM | Mov),
D(ByteOp | DstReg | SrcMem | ModRM | Mov), D(DstReg | SrcMem | ModRM | Mov),
D(DstMem | SrcNone | ModRM | Mov), D(ModRM | DstReg),
- D(ImplicitOps | SrcMem16 | ModRM), D(Group | Group1A),
+ D(ImplicitOps | SrcMem16 | ModRM), G(0, group1A),
/* 0x90 - 0x97 */
D(DstReg), D(DstReg), D(DstReg), D(DstReg), D(DstReg), D(DstReg), D(DstReg), D(DstReg),
/* 0x98 - 0x9F */