commit | 900efe200e317649aecbeaa55619a4fc3adb2251 | [log] [tgz] |
---|---|---|
author | Nadav Amit <namit@cs.technion.ac.il> | Mon Mar 30 15:39:21 2015 +0300 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Mon Mar 30 16:46:11 2015 +0200 |
tree | 88322796917be9a8edc1b43adb7f0d932e8acea8 | |
parent | 6fd8e1275709a5bb084847eda6730b983538a572 [diff] |
KVM: x86: BSF and BSR emulation change register unnecassarily If the source of BSF and BSR is zero, the destination register should not change. That is how real hardware behaves. If we set the destination even with the same value that we had before, we may clear bits [63:32] unnecassarily. Signed-off-by: Nadav Amit <namit@cs.technion.ac.il> Message-Id: <1427719163-5429-4-git-send-email-namit@cs.technion.ac.il> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>