Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248102
b: refs/heads/master
c: 509cf9f
h: refs/heads/master
v: v3
  • Loading branch information
Takuya Yoshikawa authored and Avi Kivity committed May 22, 2011
1 parent 0a6bc10 commit fde025f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 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: c1ed6dea8113597cfa00911faa814d9dbb586932
refs/heads/master: 509cf9fe11dad85f96944095ed63b2caa85cdfc9
8 changes: 3 additions & 5 deletions trunk/arch/x86/kvm/emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,6 @@ static void *decode_register(u8 modrm_reg, unsigned long *regs,
}

static int read_descriptor(struct x86_emulate_ctxt *ctxt,
struct x86_emulate_ops *ops,
struct segmented_address addr,
u16 *size, unsigned long *address, int op_bytes)
{
Expand Down Expand Up @@ -2720,7 +2719,7 @@ static int em_lgdt(struct x86_emulate_ctxt *ctxt)
struct desc_ptr desc_ptr;
int rc;

rc = read_descriptor(ctxt, ctxt->ops, c->src.addr.mem,
rc = read_descriptor(ctxt, c->src.addr.mem,
&desc_ptr.size, &desc_ptr.address,
c->op_bytes);
if (rc != X86EMUL_CONTINUE)
Expand Down Expand Up @@ -2749,9 +2748,8 @@ static int em_lidt(struct x86_emulate_ctxt *ctxt)
struct desc_ptr desc_ptr;
int rc;

rc = read_descriptor(ctxt, ctxt->ops, c->src.addr.mem,
&desc_ptr.size,
&desc_ptr.address,
rc = read_descriptor(ctxt, c->src.addr.mem,
&desc_ptr.size, &desc_ptr.address,
c->op_bytes);
if (rc != X86EMUL_CONTINUE)
return rc;
Expand Down

0 comments on commit fde025f

Please sign in to comment.