Merge pull request #261 from wheremyfoodat/sd-card

[CPU] Add function for clearing JIT cache
This commit is contained in:
wheremyfoodat 2023-09-05 21:25:53 +03:00 committed by GitHub
commit 94ba65bd9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 0 deletions

View file

@ -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;

View file

@ -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();
}; };

View file

@ -263,6 +263,8 @@ void Kernel::duplicateHandle() {
} }
} }
void Kernel::clearInstructionCache() { cpu.clearCache(); }
namespace SystemInfoType { namespace SystemInfoType {
enum : u32 { enum : u32 {
MemoryInformation = 0, MemoryInformation = 0,