diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-25 16:41:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-25 16:41:09 +0000 |
commit | 1910e2f3ecec461d1eab8c44b16c977539080a6e (patch) | |
tree | 4597585125af49c820f8f2c22d825de49a30f0b7 /lib/ExecutionEngine | |
parent | a095db13bf1f29ef75098ba71ff21851ec81ff46 (diff) |
JITEmitter.cpp was trying to sync the icache for function stubs, but
was actually passing a completely incorrect size to sys_icache_invalidate.
Instead of having the JITEmitter do this (which doesn't have the correct
size), just make the target sync its own stubs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46354 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r-- | lib/ExecutionEngine/JIT/JITEmitter.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/ExecutionEngine/JIT/JITEmitter.cpp b/lib/ExecutionEngine/JIT/JITEmitter.cpp index 049b3bc4a3..d49b64f806 100644 --- a/lib/ExecutionEngine/JIT/JITEmitter.cpp +++ b/lib/ExecutionEngine/JIT/JITEmitter.cpp @@ -182,10 +182,6 @@ void *JITResolver::getFunctionStub(Function *F) { TheJIT->updateGlobalMapping(F, Stub); } - // Invalidate the icache if necessary. - synchronizeICache(Stub, TheJIT->getCodeEmitter()->getCurrentPCValue() - - (intptr_t)Stub); - DOUT << "JIT: Stub emitted at [" << Stub << "] for function '" << F->getName() << "'\n"; @@ -224,10 +220,6 @@ void *JITResolver::getExternalFunctionStub(void *FnAddr) { Stub = TheJIT->getJITInfo().emitFunctionStub(FnAddr, *TheJIT->getCodeEmitter()); - // Invalidate the icache if necessary. - synchronizeICache(Stub, TheJIT->getCodeEmitter()->getCurrentPCValue() - - (intptr_t)Stub); - DOUT << "JIT: Stub emitted at [" << Stub << "] for external function at '" << FnAddr << "'\n"; return Stub; |