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