projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20c29ff
)
KVM: x86 emulator: switch OpImmUByte decode to decode_imm()
author
Avi Kivity
<
[email protected]
>
Tue, 13 Sep 2011 07:45:45 +0000
(10:45 +0300)
committer
Avi Kivity
<
[email protected]
>
Sun, 25 Sep 2011 16:52:52 +0000
(19:52 +0300)
Similar to SrcImmUByte.
Signed-off-by: Avi Kivity <
[email protected]
>
Signed-off-by: Marcelo Tosatti <
[email protected]
>
arch/x86/kvm/emulate.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/emulate.c
b/arch/x86/kvm/emulate.c
index 00e0904fab220343ec59a725a72ea40828a65792..a0d6ceb4b4547c4f106d9fcdcffa44820ebe0597 100644
(file)
--- a/
arch/x86/kvm/emulate.c
+++ b/
arch/x86/kvm/emulate.c
@@
-3349,10
+3349,7
@@
static int decode_operand(struct x86_emulate_ctxt *ctxt, struct operand *op,
ctxt->twobyte && (ctxt->b == 0xb6 || ctxt->b == 0xb7));
break;
case OpImmUByte:
- op->type = OP_IMM;
- op->addr.mem.ea = ctxt->_eip;
- op->bytes = 1;
- op->val = insn_fetch(u8, ctxt);
+ rc = decode_imm(ctxt, op, 1, false);
break;
case OpMem:
case OpMem64: