diff options
author | Avi Kivity <avi@redhat.com> | 2011-09-13 03:45:45 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-09-25 12:52:52 -0400 |
commit | 608aabe316eab9116ddd73418217277693df3bb8 (patch) | |
tree | a81e7e29058b16142b83d562a6747b71faaafddc /arch/x86/kvm/emulate.c | |
parent | 20c29ff205ea9c4e2bf4ef79b0e5b934d6c60aff (diff) |
KVM: x86 emulator: switch OpImmUByte decode to decode_imm()
Similar to SrcImmUByte.
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/kvm/emulate.c')
-rw-r--r-- | arch/x86/kvm/emulate.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index 00e0904fab22..a0d6ceb4b454 100644 --- 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, | |||
3349 | ctxt->twobyte && (ctxt->b == 0xb6 || ctxt->b == 0xb7)); | 3349 | ctxt->twobyte && (ctxt->b == 0xb6 || ctxt->b == 0xb7)); |
3350 | break; | 3350 | break; |
3351 | case OpImmUByte: | 3351 | case OpImmUByte: |
3352 | op->type = OP_IMM; | 3352 | rc = decode_imm(ctxt, op, 1, false); |
3353 | op->addr.mem.ea = ctxt->_eip; | ||
3354 | op->bytes = 1; | ||
3355 | op->val = insn_fetch(u8, ctxt); | ||
3356 | break; | 3353 | break; |
3357 | case OpMem: | 3354 | case OpMem: |
3358 | case OpMem64: | 3355 | case OpMem64: |