mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 17:41:44 +00:00
KVM: x86 emulator: Update c->dst.bytes in decode instruction
Update c->dst.bytes in decode instruction instead of instruction itself. It's needed because if c->dst.bytes is equal to 0, the instruction is not emulated. Signed-off-by: Guillaume Thouvenin <guillaume.thouvenin@ext.bull.net> Signed-off-by: Laurent Vivier <laurent.vivier@bull.net> Signed-off-by: Avi Kivity <avi@qumranet.com>
This commit is contained in:
parent
3e6e0aab1b
commit
89c696383d
@ -1049,6 +1049,7 @@ done_prefixes:
|
||||
break;
|
||||
case DstMem:
|
||||
if ((c->d & ModRM) && c->modrm_mod == 3) {
|
||||
c->dst.bytes = (c->d & ByteOp) ? 1 : c->op_bytes;
|
||||
c->dst.type = OP_REG;
|
||||
c->dst.val = c->dst.orig_val = c->modrm_val;
|
||||
c->dst.ptr = c->modrm_ptr;
|
||||
|
Loading…
Reference in New Issue
Block a user