mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-08 23:25:40 +12:00
Merge pull request #261 from wheremyfoodat/sd-card
[CPU] Add function for clearing JIT cache
This commit is contained in:
commit
94ba65bd9c
3 changed files with 5 additions and 0 deletions
|
@ -170,6 +170,8 @@ public:
|
||||||
return env.totalTicks;
|
return env.totalTicks;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void clearCache() { jit->ClearCache(); }
|
||||||
|
|
||||||
void runFrame() {
|
void runFrame() {
|
||||||
env.ticksLeft = ticksPerSec / 60;
|
env.ticksLeft = ticksPerSec / 60;
|
||||||
|
|
||||||
|
|
|
@ -229,4 +229,5 @@ public:
|
||||||
|
|
||||||
void sendGPUInterrupt(GPUInterrupt type) { serviceManager.sendGPUInterrupt(type); }
|
void sendGPUInterrupt(GPUInterrupt type) { serviceManager.sendGPUInterrupt(type); }
|
||||||
void signalDSPEvents() { serviceManager.signalDSPEvents(); }
|
void signalDSPEvents() { serviceManager.signalDSPEvents(); }
|
||||||
|
void clearInstructionCache();
|
||||||
};
|
};
|
|
@ -263,6 +263,8 @@ void Kernel::duplicateHandle() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Kernel::clearInstructionCache() { cpu.clearCache(); }
|
||||||
|
|
||||||
namespace SystemInfoType {
|
namespace SystemInfoType {
|
||||||
enum : u32 {
|
enum : u32 {
|
||||||
MemoryInformation = 0,
|
MemoryInformation = 0,
|
||||||
|
|
Loading…
Add table
Reference in a new issue