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 | 919ad97c019d2d6eaf43ae7d8e17ed9a55b85764 (patch) | |
tree | 558c0ae23197d57a52253a65d81f1cff7e648dbd /llvm/lib/ExecutionEngine | |
parent | d145ac0b34117b71972a4673687a407d89095d81 (diff) | |
download | bcm5719-llvm-919ad97c019d2d6eaf43ae7d8e17ed9a55b85764.tar.gz bcm5719-llvm-919ad97c019d2d6eaf43ae7d8e17ed9a55b85764.zip |
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.
llvm-svn: 46354
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r-- | llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp b/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp index 049b3bc4a36..d49b64f8069 100644 --- a/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp +++ b/llvm/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; |