mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
LLI: move instruction cache tweaks.
Invalidate the instruction cache right before we start actually executing code, otherwise we can miss some that came later. This is still not quite right for a truly lazilly compiled environment, but it's closer. llvm-svn: 162803
This commit is contained in:
parent
478cc27601
commit
30c6ec489f
@ -466,10 +466,6 @@ int main(int argc, char **argv, char * const *envp) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
// Clear instruction cache before code will be executed.
|
||||
if (JMM)
|
||||
JMM->invalidateInstructionCache();
|
||||
|
||||
// The following functions have no effect if their respective profiling
|
||||
// support wasn't enabled in the build configuration.
|
||||
EE->RegisterJITEventListener(
|
||||
@ -524,6 +520,10 @@ int main(int argc, char **argv, char * const *envp) {
|
||||
}
|
||||
}
|
||||
|
||||
// Clear instruction cache before code will be executed.
|
||||
if (JMM)
|
||||
JMM->invalidateInstructionCache();
|
||||
|
||||
// Run main.
|
||||
int Result = EE->runFunctionAsMain(EntryFn, InputArgv, envp);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user