Gekko: Convert UReg_HID4 over to using Common::BitField

This commit is contained in:
Lioncash 2021-08-27 11:10:22 -04:00
parent 6ab2e5ab16
commit 9e183e63f1
1 changed files with 12 additions and 14 deletions

View File

@ -590,20 +590,18 @@ union UReg_HID2
// Hardware Implementation-Dependent Register 4 // Hardware Implementation-Dependent Register 4
union UReg_HID4 union UReg_HID4
{ {
struct BitField<0, 20, u32> reserved_1;
{ BitField<20, 1, u32> L2CFI;
u32 : 20; BitField<21, 1, u32> L2MUM;
u32 L2CFI : 1; BitField<22, 1, u32> DBP;
u32 L2MUM : 1; BitField<23, 1, u32> LPE;
u32 DBP : 1; BitField<24, 1, u32> ST0;
u32 LPE : 1; BitField<25, 1, u32> SBE;
u32 ST0 : 1; BitField<26, 1, u32> reserved_2;
u32 SBE : 1; BitField<27, 2, u32> BPD;
u32 : 1; BitField<29, 2, u32> L2FM;
u32 BPD : 2; BitField<31, 1, u32> reserved_3;
u32 L2FM : 2;
u32 : 1;
};
u32 Hex = 0; u32 Hex = 0;
UReg_HID4() = default; UReg_HID4() = default;