Gekko: Convert UReg_MMCR0 over to using Common::BitField

This commit is contained in:
Lioncash 2021-08-27 11:15:15 -04:00
parent 1ec3768b84
commit 300f7c10bd
1 changed files with 17 additions and 19 deletions

View File

@ -621,25 +621,23 @@ union UReg_SDR1
// MMCR0 - Monitor Mode Control Register 0 format // MMCR0 - Monitor Mode Control Register 0 format
union UReg_MMCR0 union UReg_MMCR0
{ {
u32 Hex; BitField<0, 6, u32> PMC2SELECT;
struct BitField<6, 7, u32> PMC1SELECT;
{ BitField<13, 1, u32> PMCTRIGGER;
u32 PMC2SELECT : 6; BitField<14, 1, u32> PMCINTCONTROL;
u32 PMC1SELECT : 7; BitField<15, 1, u32> PMC1INTCONTROL;
u32 PMCTRIGGER : 1; BitField<16, 6, u32> THRESHOLD;
u32 PMCINTCONTROL : 1; BitField<22, 1, u32> INTONBITTRANS;
u32 PMC1INTCONTROL : 1; BitField<23, 2, u32> RTCSELECT;
u32 THRESHOLD : 6; BitField<25, 1, u32> DISCOUNT;
u32 INTONBITTRANS : 1; BitField<26, 1, u32> ENINT;
u32 RTCSELECT : 2; BitField<27, 1, u32> DMR;
u32 DISCOUNT : 1; BitField<28, 1, u32> DMS;
u32 ENINT : 1; BitField<29, 1, u32> DU;
u32 DMR : 1; BitField<30, 1, u32> DP;
u32 DMS : 1; BitField<31, 1, u32> DIS;
u32 DU : 1;
u32 DP : 1; u32 Hex = 0;
u32 DIS : 1;
};
}; };
// MMCR1 - Monitor Mode Control Register 1 format // MMCR1 - Monitor Mode Control Register 1 format