mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
VertexLoaderX64: fix 2GB warnings
Unlike the CPU JIT, the vertex loader JIT already emits position-independent code, so all we need to do is disable the warning.
This commit is contained in:
parent
c5685ba53a
commit
63c9fdd074
@ -38,10 +38,10 @@ public:
|
||||
virtual ~CodeBlock() { if (region) FreeCodeSpace(); }
|
||||
|
||||
// Call this before you generate any code.
|
||||
void AllocCodeSpace(int size)
|
||||
void AllocCodeSpace(int size, bool need_low = true)
|
||||
{
|
||||
region_size = size;
|
||||
region = (u8*)AllocateExecutableMemory(region_size);
|
||||
region = (u8*)AllocateExecutableMemory(region_size, need_low);
|
||||
T::SetCodePtr(region);
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,7 @@ VertexLoaderX64::VertexLoaderX64(const TVtxDesc& vtx_desc, const VAT& vtx_att) :
|
||||
if (!IsInitialized())
|
||||
return;
|
||||
|
||||
AllocCodeSpace(4096);
|
||||
AllocCodeSpace(4096, false);
|
||||
ClearCodeSpace();
|
||||
GenerateVertexLoader();
|
||||
WriteProtect();
|
||||
|
Loading…
Reference in New Issue
Block a user