Add a utility function for all the ABIs to call functions with a pointer arg. Use to call Advance from the JIT with the MIPSContext. Indent some code better.

This commit is contained in:
Henrik Rydgård committed 2026-08-13 08:09:30 +02:00
1 parent 95f1dc648d
commit eb0813c0e3
22 files changed
+90 -52

No files matched your search

+1 -2
View File
@@ -379,8 +379,7 @@ void ForceCheck(MIPSState *mips) {
#endif
}
void Advance() {
MIPSState *mips = currentMIPS; // TODO: Move to parameter
void Advance(MIPSState *mips) {
PROFILE_THIS_SCOPE("advance");
int cyclesExecuted = slicelength - mips->downcount;
globalTimer += cyclesExecuted;