mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 02:33:43 +01:00
Implement mfic and mtic
Both were no-ops, so mfic left its destination unchanged. They read and write the interrupt enable flag that sceKernelCpuSuspendIntr/ResumeIntr use. Only bit 0 counts for mtic, which also goes for sceKernelCpuResumeIntr, since on hardware it's just mtic. Adds the intr/mfic test, recorded on hardware. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
a9d63d2ee1
commit
feb6caa3c4
5 files changed
+18
-18
No files matched your search
@@ -98,7 +98,8 @@ static int sceKernelCpuSuspendIntr()
|
||||
static void sceKernelCpuResumeIntr(u32 enable)
|
||||
{
|
||||
VERBOSE_LOG(Log::sceIntc, "sceKernelCpuResumeIntr(%i)", enable);
|
||||
if (enable)
|
||||
// This is mtic a0, $0, which only looks at bit 0 (tests/intr/mfic).
|
||||
if (enable & 1)
|
||||
{
|
||||
__EnableInterrupts();
|
||||
hleRunInterrupts();
|
||||
|
||||
Reference in new issue
Block a user