mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-10 21:00:55 -04:00
3b26aae532
* 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
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();
|
|
}
|