mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-10 23:15:28 +00:00
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:
parent
2e55ddd339
commit
623632f3ac
|
@ -247,7 +247,7 @@ static void phys_page_compact(PhysPageEntry *lp, Node *nodes, unsigned long *com
|
||||||
assert(valid_ptr < P_L2_SIZE);
|
assert(valid_ptr < P_L2_SIZE);
|
||||||
|
|
||||||
/* Don't compress if it won't fit in the # of bits we have. */
|
/* 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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue