KVM: x86 emulator: fix negative bit offset BitOp instruction emulation
authorWei Yongjun <yjwei@cn.fujitsu.com>
Mon, 9 Aug 2010 03:34:56 +0000 (11:34 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:51:01 +0000 (10:51 +0200)
commit35c843c4857e2a818d1d951d87c40ee2cf5c1be8
tree3af2786b912d11c373c5eed7df590070bce089b3
parent8744aa9aad56be756a58126b429f176898631c3f
KVM: x86 emulator: fix negative bit offset BitOp instruction emulation

If bit offset operands is a negative number, BitOp instruction
will return wrong value. This patch fix it.

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/emulate.c