Files
dusklight/src/dolphin/base/PPCPm.c
T
kipcode66 3b26aae532 Improving standard compiler compatibility (#2926)
* Adding explicit dolphin/ prefix & fix characters

* Rename ShiftJIS to SJIS

* Separate JASSeqReader read methods implementation between compilers.

* Fix pointer.h

* fix d_item_data typo

* fix gcn matching issue
2025-12-08 20:31:22 -08:00

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