exec.c: correct the maximum skip value during compact

skip is defined with 6 bits. So the maximum value should be (1 << 6).

Backports commit 26ca2075babd7775e246b9eb7da75d6de77eb658 from qemu
This commit is contained in:
Wei Yang 2019-11-20 13:15:13 -05:00 committed by Lioncash
parent 2e55ddd339
commit 623632f3ac
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -247,7 +247,7 @@ static void phys_page_compact(PhysPageEntry *lp, Node *nodes, unsigned long *com
assert(valid_ptr < P_L2_SIZE);
/* Don't compress if it won't fit in the # of bits we have. */
if (lp->skip + p[valid_ptr].skip >= (1 << 3)) {
if (lp->skip + p[valid_ptr].skip >= (1 << 6)) {
return;
}