mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-06 14:57:41 +00:00
Make sure lli compiles all code before invalidating instruction caches.
Patch from Amara Emerson. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164296 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
aa258442b9
commit
a668b46733
@ -656,6 +656,9 @@ int main(int argc, char **argv, char * const *envp) {
|
||||
|
||||
Target.stop();
|
||||
} else {
|
||||
// Trigger compilation separately so code regions that need to be
|
||||
// invalidated will be known.
|
||||
(void)EE->getPointerToFunction(EntryFn);
|
||||
// Clear instruction cache before code will be executed.
|
||||
if (JMM)
|
||||
static_cast<LLIMCJITMemoryManager*>(JMM)->invalidateInstructionCache();
|
||||
|
Loading…
Reference in New Issue
Block a user