Skip to content

Commit

Permalink
cp15: add support for process ID
Browse files Browse the repository at this point in the history
  • Loading branch information
lifehackerhansol committed Nov 15, 2024
1 parent c1624b2 commit ee39a36
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions desmume/src/cp15.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,13 @@ BOOL armcp15_moveCP2ARM(armcp15_t *armcp15, u32 * R, u8 CRn, u8 CRm, u8 opcode1,
}
}
return FALSE;
case 13:
if(opcode1 == 0 && opcode2 == 1)
{
*R = armcp15->processID;
return TRUE;
}
return FALSE;
default:
LOG("Unsupported CP15 operation : MRC\n");
return FALSE;
Expand Down Expand Up @@ -488,6 +495,13 @@ BOOL armcp15_moveARM2CP(armcp15_t *armcp15, u32 val, u8 CRn, u8 CRm, u8 opcode1,
}
}
return FALSE;
case 13:
if(opcode1 == 0 && opcode2 == 1)
{
armcp15->processID = val;
return TRUE;
}
return FALSE;
default:
return FALSE;
}
Expand Down

0 comments on commit ee39a36

Please sign in to comment.