summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-25 16:41:09 +0000
committerChris Lattner <sabre@nondot.org>2008-01-25 16:41:09 +0000
commit919ad97c019d2d6eaf43ae7d8e17ed9a55b85764 (patch)
tree558c0ae23197d57a52253a65d81f1cff7e648dbd /llvm/lib/ExecutionEngine
parentd145ac0b34117b71972a4673687a407d89095d81 (diff)
downloadbcm5719-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.cpp8
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;
OpenPOWER on IntegriCloud