Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 258016
b: refs/heads/master
c: db5b076
h: refs/heads/master
v: v3
  • Loading branch information
Takuya Yoshikawa authored and Avi Kivity committed Jul 12, 2011
1 parent e9e8c4b commit 182f04d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 30 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e01991e71a179ddab494c8e02100ad73bc0010c4
refs/heads/master: db5b0762f3cab58398f16379ab37ef66ef9ba497
37 changes: 8 additions & 29 deletions trunk/arch/x86/kvm/emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -3169,9 +3169,9 @@ static struct opcode opcode_table[256] = {
D(DstReg | SrcMemFAddr | ModRM | No64), D(DstReg | SrcMemFAddr | ModRM | No64),
G(ByteOp, group11), G(0, group11),
/* 0xC8 - 0xCF */
N, N, N, D(ImplicitOps | Stack),
N, N, N, I(ImplicitOps | Stack, em_ret_far),
D(ImplicitOps), DI(SrcImmByte, intn),
D(ImplicitOps | No64), DI(ImplicitOps, iret),
D(ImplicitOps | No64), II(ImplicitOps, em_iret, iret),
/* 0xD0 - 0xD7 */
D2bv(DstMem | SrcOne | ModRM), D2bv(DstMem | ModRM),
N, N, N, N,
Expand All @@ -3183,7 +3183,7 @@ static struct opcode opcode_table[256] = {
D2bvIP(SrcAcc | DstImmUByte, out, check_perm_out),
/* 0xE8 - 0xEF */
D(SrcImm | Stack), D(SrcImm | ImplicitOps),
D(SrcImmFAddr | No64), D(SrcImmByte | ImplicitOps),
I(SrcImmFAddr | No64, em_jmp_far), D(SrcImmByte | ImplicitOps),
D2bvIP(SrcDX | DstAcc, in, check_perm_in),
D2bvIP(SrcAcc | DstDX, out, check_perm_out),
/* 0xF0 - 0xF7 */
Expand All @@ -3198,7 +3198,8 @@ static struct opcode opcode_table[256] = {
static struct opcode twobyte_table[256] = {
/* 0x00 - 0x0F */
G(0, group6), GD(0, &group7), N, N,
N, D(ImplicitOps | VendorSpecific), DI(ImplicitOps | Priv, clts), N,
N, I(ImplicitOps | VendorSpecific, em_syscall),
II(ImplicitOps | Priv, em_clts, clts), N,
DI(ImplicitOps | Priv, invd), DI(ImplicitOps | Priv, wbinvd), N, N,
N, D(ImplicitOps | ModRM), N, N,
/* 0x10 - 0x1F */
Expand All @@ -3215,7 +3216,8 @@ static struct opcode twobyte_table[256] = {
IIP(ImplicitOps, em_rdtsc, rdtsc, check_rdtsc),
DI(ImplicitOps | Priv, rdmsr),
DIP(ImplicitOps | Priv, rdpmc, check_rdpmc),
D(ImplicitOps | VendorSpecific), D(ImplicitOps | Priv | VendorSpecific),
I(ImplicitOps | VendorSpecific, em_sysenter),
I(ImplicitOps | Priv | VendorSpecific, em_sysexit),
N, N,
N, N, N, N, N, N, N, N,
/* 0x40 - 0x4F */
Expand Down Expand Up @@ -3947,9 +3949,6 @@ int x86_emulate_insn(struct x86_emulate_ctxt *ctxt)
case 0xc5: /* lds */
rc = emulate_load_segment(ctxt, VCPU_SREG_DS);
break;
case 0xcb: /* ret far */
rc = em_ret_far(ctxt);
break;
case 0xcc: /* int3 */
irq = 3;
goto do_interrupt;
Expand All @@ -3964,9 +3963,6 @@ int x86_emulate_insn(struct x86_emulate_ctxt *ctxt)
goto do_interrupt;
}
break;
case 0xcf: /* iret */
rc = em_iret(ctxt);
break;
case 0xd0 ... 0xd1: /* Grp2 */
rc = em_grp2(ctxt);
break;
Expand Down Expand Up @@ -3998,12 +3994,7 @@ int x86_emulate_insn(struct x86_emulate_ctxt *ctxt)
break;
}
case 0xe9: /* jmp rel */
goto jmp;
case 0xea: /* jmp far */
rc = em_jmp_far(ctxt);
break;
case 0xeb:
jmp: /* jmp rel short */
case 0xeb: /* jmp rel short */
jmp_rel(c, c->src.val);
c->dst.type = OP_NONE; /* Disable writeback. */
break;
Expand Down Expand Up @@ -4126,12 +4117,6 @@ int x86_emulate_insn(struct x86_emulate_ctxt *ctxt)

twobyte_insn:
switch (c->b) {
case 0x05: /* syscall */
rc = em_syscall(ctxt);
break;
case 0x06:
rc = em_clts(ctxt);
break;
case 0x09: /* wbinvd */
(ctxt->ops->wbinvd)(ctxt);
break;
Expand Down Expand Up @@ -4188,12 +4173,6 @@ int x86_emulate_insn(struct x86_emulate_ctxt *ctxt)
}
rc = X86EMUL_CONTINUE;
break;
case 0x34: /* sysenter */
rc = em_sysenter(ctxt);
break;
case 0x35: /* sysexit */
rc = em_sysexit(ctxt);
break;
case 0x40 ... 0x4f: /* cmov */
c->dst.val = c->dst.orig_val = c->src.val;
if (!test_cc(c->b, ctxt->eflags))
Expand Down

0 comments on commit 182f04d

Please sign in to comment.