KVM: x86 emulator: convert bsf/bsr instructions to emulate_2op_SrcV_nobyte()
authorJoerg Roedel <joerg.roedel@amd.com>
Mon, 7 May 2012 10:12:25 +0000 (12:12 +0200)
committerAvi Kivity <avi@redhat.com>
Mon, 14 May 2012 08:32:38 +0000 (11:32 +0300)
The instruction emulation for bsrw is broken in KVM because
the code always uses bsr with 32 or 64 bit operand size for
emulation. Fix that by using emulate_2op_SrcV_nobyte() macro
to use guest operand size for emulation.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>

No differences found