mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-24 22:34:54 +00:00
Merge pull request #3025 from Tilka/fixfix
VertexLoaderX64: fix 2GB warnings
This commit is contained in:
parent
3556bc0bed
commit
bfdbace69b
2 changed files with 3 additions and 3 deletions
|
@ -28,10 +28,10 @@ public:
|
||||||
virtual ~CodeBlock() { if (region) FreeCodeSpace(); }
|
virtual ~CodeBlock() { if (region) FreeCodeSpace(); }
|
||||||
|
|
||||||
// Call this before you generate any code.
|
// Call this before you generate any code.
|
||||||
void AllocCodeSpace(int size)
|
void AllocCodeSpace(int size, bool need_low = true)
|
||||||
{
|
{
|
||||||
region_size = size;
|
region_size = size;
|
||||||
region = (u8*)AllocateExecutableMemory(region_size);
|
region = (u8*)AllocateExecutableMemory(region_size, need_low);
|
||||||
T::SetCodePtr(region);
|
T::SetCodePtr(region);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ VertexLoaderX64::VertexLoaderX64(const TVtxDesc& vtx_desc, const VAT& vtx_att) :
|
||||||
if (!IsInitialized())
|
if (!IsInitialized())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
AllocCodeSpace(4096);
|
AllocCodeSpace(4096, false);
|
||||||
ClearCodeSpace();
|
ClearCodeSpace();
|
||||||
GenerateVertexLoader();
|
GenerateVertexLoader();
|
||||||
WriteProtect();
|
WriteProtect();
|
||||||
|
|
Loading…
Add table
Reference in a new issue