Skip to content
  • Avi Kivity's avatar
    KVM: x86 emulator: fix byte-sized MOVZX/MOVSX · 361cad2b
    Avi Kivity authored
    Commit 2adb5ad9
    
     removed ByteOp from MOVZX/MOVSX, replacing them by
    SrcMem8, but neglected to fix the dependency in the emulation code
    on ByteOp.  This caused the instruction not to have any effect in
    some circumstances.
    
    Fix by replacing the check for ByteOp with the equivalent src.op_bytes == 1.
    
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    361cad2b