mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-15 05:40:55 -04:00
4df8ccc871
* Reorganize files into libs/{dolphin,JSystem,PowerPC_EABI_Support,revolution,TRK_MINNOW_DOLPHIN}
* Update configure.py and project.py for new libs structure
* Refactor `#include <dolphin/x.h>` -> `<x.h>`
* Remove `__REVOLUTION_SDK__` forwards from dolphin
* Fix dolphin/ references in revolution
* Wrap `#include <dolphin.h>` in `!__REVOLUTION_SDK__`
* Always build TRK against dolphin headers
* Resolve revolution SDK header resolution issues
35 lines
494 B
C
35 lines
494 B
C
#include <dolphin/dolphin.h>
|
|
#include <dolphin/base/PPCArch.h>
|
|
|
|
void PMBegin(void) {
|
|
PPCMtmmcr0(0);
|
|
PPCMtmmcr1(0);
|
|
PPCMtpmc1(0);
|
|
PPCMtpmc2(0);
|
|
PPCMtpmc3(0);
|
|
PPCMtpmc4(0);
|
|
PPCMtmmcr0(0x4F);
|
|
PPCMtmmcr1(0x78800000);
|
|
}
|
|
|
|
void PMEnd(void) {
|
|
PPCMtmmcr0(0);
|
|
PPCMtmmcr1(0);
|
|
}
|
|
|
|
void PMCycles(void) {
|
|
PPCMfpmc1();
|
|
}
|
|
|
|
void PML1FetchMisses(void) {
|
|
PPCMfpmc2();
|
|
}
|
|
|
|
void PML1MissCycles(void) {
|
|
PPCMfpmc3();
|
|
}
|
|
|
|
void PMInstructions(void) {
|
|
PPCMfpmc4();
|
|
}
|