Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 80701
b: refs/heads/master
c: 9f1ef3f
h: refs/heads/master
i:
  80699: 4a52c0a
v: v3
  • Loading branch information
Avi Kivity committed Jan 30, 2008
1 parent cdb0514 commit 8a7d00f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 33615aa956521923eab0552994b5961cd3034042
refs/heads/master: 9f1ef3f8f5f8ade2561d969181b152c225b82a3e
6 changes: 3 additions & 3 deletions trunk/drivers/kvm/x86_emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,10 +518,10 @@ static int test_cc(unsigned int condition, unsigned int flags)

static void decode_register_operand(struct operand *op,
struct decode_cache *c,
int highbyte_regs,
int inhibit_bytereg)
{
unsigned reg = c->modrm_reg;
int highbyte_regs = c->rex_prefix == 0;

if (!(c->d & ModRM))
reg = (c->b & 7) | ((c->rex_prefix & 1) << 3);
Expand Down Expand Up @@ -837,7 +837,7 @@ x86_decode_insn(struct x86_emulate_ctxt *ctxt, struct x86_emulate_ops *ops)
case SrcNone:
break;
case SrcReg:
decode_register_operand(&c->src, c, c->rex_prefix == 0, 0);
decode_register_operand(&c->src, c, 0);
break;
case SrcMem16:
c->src.bytes = 2;
Expand Down Expand Up @@ -895,7 +895,7 @@ x86_decode_insn(struct x86_emulate_ctxt *ctxt, struct x86_emulate_ops *ops)
/* Special instructions do their own operand decoding. */
return 0;
case DstReg:
decode_register_operand(&c->dst, c, c->rex_prefix == 0,
decode_register_operand(&c->dst, c,
c->twobyte && (c->b == 0xb6 || c->b == 0xb7));
break;
case DstMem:
Expand Down

0 comments on commit 8a7d00f

Please sign in to comment.