mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 06:31:18 +00: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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162803 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d26200423e
commit
5da959daff
@ -466,10 +466,6 @@ int main(int argc, char **argv, char * const *envp) {
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clear instruction cache before code will be executed.
|
|
||||||
if (JMM)
|
|
||||||
JMM->invalidateInstructionCache();
|
|
||||||
|
|
||||||
// The following functions have no effect if their respective profiling
|
// The following functions have no effect if their respective profiling
|
||||||
// support wasn't enabled in the build configuration.
|
// support wasn't enabled in the build configuration.
|
||||||
EE->RegisterJITEventListener(
|
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.
|
// Run main.
|
||||||
int Result = EE->runFunctionAsMain(EntryFn, InputArgv, envp);
|
int Result = EE->runFunctionAsMain(EntryFn, InputArgv, envp);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user