mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
Align stubs on 4 byte boundary. This fixes 447.dealII.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31790 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
00e533043d
commit
73b00947e7
@ -288,13 +288,13 @@ void *X86JITInfo::emitFunctionStub(void *Fn, MachineCodeEmitter &MCE) {
|
||||
bool NotCC = Fn != (void*)(intptr_t)X86CompilationCallback;
|
||||
#endif
|
||||
if (NotCC) {
|
||||
MCE.startFunctionStub(5);
|
||||
MCE.startFunctionStub(5, 4);
|
||||
MCE.emitByte(0xE9);
|
||||
MCE.emitWordLE((intptr_t)Fn-MCE.getCurrentPCValue()-4);
|
||||
return MCE.finishFunctionStub(0);
|
||||
}
|
||||
|
||||
MCE.startFunctionStub(6);
|
||||
MCE.startFunctionStub(6, 4);
|
||||
MCE.emitByte(0xE8); // Call with 32 bit pc-rel destination...
|
||||
|
||||
MCE.emitWordLE((intptr_t)Fn-MCE.getCurrentPCValue()-4);
|
||||
|
Loading…
x
Reference in New Issue
Block a user