diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2003-08-15 18:03:06 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2003-08-15 18:03:06 +0000 |
commit | d2dfc9628d2f7de0e446814291c9196ba24d5157 (patch) | |
tree | 3c90c5386e4e81c317abcd89fdd88befbbe254b5 | |
parent | 53523e57bf363792e4b1d3b5002a7fe349061364 (diff) | |
download | external_llvm-d2dfc9628d2f7de0e446814291c9196ba24d5157.zip external_llvm-d2dfc9628d2f7de0e446814291c9196ba24d5157.tar.gz external_llvm-d2dfc9628d2f7de0e446814291c9196ba24d5157.tar.bz2 |
Now that the JIT memory manager allocates as many bytes as necessary rather than
rounding up to a page, we need to request (num instrs * 4) bytes. However, I
think that 64 bytes is overkill for the stub function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7888 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/SparcV9/SparcV9CodeEmitter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/SparcV9/SparcV9CodeEmitter.cpp b/lib/Target/SparcV9/SparcV9CodeEmitter.cpp index 8286882..51254e2 100644 --- a/lib/Target/SparcV9/SparcV9CodeEmitter.cpp +++ b/lib/Target/SparcV9/SparcV9CodeEmitter.cpp @@ -373,7 +373,8 @@ uint64_t JITResolver::CompilationCallback() { /// directly. /// uint64_t JITResolver::emitStubForFunction(Function *F) { - MCE.startFunctionStub(*F, 20); + // FIXME: 40 is not enough... but should be + MCE.startFunctionStub(*F, 64); DEBUG(std::cerr << "Emitting stub at addr: 0x" << std::hex << MCE.getCurrentPCValue() << "\n"); |