mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 13:02:38 +02:00
Cache management for jit
This commit is contained in:
parent
b34f59e179
commit
340266502a
@ -3,6 +3,7 @@
|
||||
#include "types.h"
|
||||
#include "result.h"
|
||||
#include "runtime/env.h"
|
||||
#include "arm/cache.h"
|
||||
#include "kernel/svc.h"
|
||||
#include "kernel/detect.h"
|
||||
#include "kernel/virtmem.h"
|
||||
@ -121,7 +122,8 @@ Result jitTransitionToExecutable(Jit* j)
|
||||
break;
|
||||
|
||||
case JitType_JitMemory:
|
||||
// todo: Clean dcache, invalidate icache.
|
||||
armDCacheFlush(j->rw_addr, j->size);
|
||||
armICacheInvalidate(j->rx_addr, j->size);
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user