]> git.ipfire.org Git - thirdparty/libvirt.git/commit
cpu: Set nfeatures_max correctly in x86Decode
authorJiri Denemark <jdenemar@redhat.com>
Thu, 4 Aug 2016 22:01:42 +0000 (00:01 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 22 Sep 2016 13:40:09 +0000 (15:40 +0200)
commit0b119e2b19f6dd335eda0158a89348cb91b0c203
treecc804ad4341f7da9aeca02806e7f48620c40afaf
parent3b6be3c0c584e55e8b2fa7a45547f7d2935dc600
cpu: Set nfeatures_max correctly in x86Decode

Keeping nfeatures_max set to 0 while nfeatures > 0 and some features are
already stored in features array is just asking for problems once we
want to add a new feature into the array.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/cpu/cpu_x86.c