mirror of
https://git.proxmox.com/git/qemu
synced 2025-07-21 16:42:32 +00:00
KVM: x86: fix typo in KVM_GET_XCRS
Only the first item of the array was ever looked at. No practical effect, but still worth fixing. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Gleb Natapov <gleb@redhat.com>
This commit is contained in:
parent
fc8ead7467
commit
0fd53fec92
@ -1314,8 +1314,8 @@ static int kvm_get_xcrs(X86CPU *cpu)
|
|||||||
|
|
||||||
for (i = 0; i < xcrs.nr_xcrs; i++) {
|
for (i = 0; i < xcrs.nr_xcrs; i++) {
|
||||||
/* Only support xcr0 now */
|
/* Only support xcr0 now */
|
||||||
if (xcrs.xcrs[0].xcr == 0) {
|
if (xcrs.xcrs[i].xcr == 0) {
|
||||||
env->xcr0 = xcrs.xcrs[0].value;
|
env->xcr0 = xcrs.xcrs[i].value;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user