mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
- RUNTIME_FUNCTION only exists in 64-bit Windows
This commit is contained in:
parent
cd211da2d8
commit
1a2e5b12d0
1 changed files with 2 additions and 2 deletions
|
@ -241,7 +241,7 @@ static void *AddJitFunction(asmjit::CodeHolder* code, asmjit::CCFunc *func)
|
||||||
if (codeSize == 0)
|
if (codeSize == 0)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef _WIN64
|
||||||
TArray<uint16_t> unwindInfo = CreateUnwindInfo(func);
|
TArray<uint16_t> unwindInfo = CreateUnwindInfo(func);
|
||||||
size_t unwindInfoSize = unwindInfo.Size() * sizeof(uint16_t);
|
size_t unwindInfoSize = unwindInfo.Size() * sizeof(uint16_t);
|
||||||
size_t functionTableSize = sizeof(RUNTIME_FUNCTION);
|
size_t functionTableSize = sizeof(RUNTIME_FUNCTION);
|
||||||
|
@ -264,7 +264,7 @@ static void *AddJitFunction(asmjit::CodeHolder* code, asmjit::CCFunc *func)
|
||||||
unwindStart = (unwindStart + 15) / 16 * 16;
|
unwindStart = (unwindStart + 15) / 16 * 16;
|
||||||
JitBlockPos -= codeSize - unwindStart;
|
JitBlockPos -= codeSize - unwindStart;
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef _WIN64
|
||||||
uint8_t *baseaddr = JitBlocks.Last();
|
uint8_t *baseaddr = JitBlocks.Last();
|
||||||
uint8_t *startaddr = p;
|
uint8_t *startaddr = p;
|
||||||
uint8_t *endaddr = p + relocSize;
|
uint8_t *endaddr = p + relocSize;
|
||||||
|
|
Loading…
Reference in a new issue