Workaround for QEMU TCG crash

This commit is contained in:
EnderIce2 2024-03-04 02:07:53 +02:00
parent 914e96b337
commit d2db08b2cf
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -111,6 +111,12 @@ NIF void MapFramebuffer(PageTable *PT)
break;
size_t fbSize = bInfo.Framebuffer[itrfb].Pitch * bInfo.Framebuffer[itrfb].Height;
fbSize = ALIGN_UP(fbSize, PAGE_SIZE);
#ifdef DEBUG
if (DebuggerIsAttached)
fbSize += 16 * PAGE_SIZE;
#endif
if (PSESupport && Page1GBSupport)
{