diff options
| author | Lioncash <mathew1800@gmail.com> | 2021-08-27 11:23:47 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2021-08-29 06:16:54 -0400 |
| commit | 12b87922fbecd19d806367adb68e29988ecdf3d2 (patch) | |
| tree | aa4865623c1b64764b0d0d16441296beab850663 /Source/Core | |
| parent | b4496e6653c5068a4b1f87db6923aa626473d72f (diff) | |
Gekko: Convert UReg_BAT_Lo over to using Common::BitField
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/PowerPC/Gekko.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/Source/Core/Core/PowerPC/Gekko.h b/Source/Core/Core/PowerPC/Gekko.h index 6fc2544858..6c58f91110 100644 --- a/Source/Core/Core/PowerPC/Gekko.h +++ b/Source/Core/Core/PowerPC/Gekko.h @@ -706,14 +706,12 @@ union UReg_BAT_Up union UReg_BAT_Lo { - struct - { - u32 PP : 2; - u32 : 1; - u32 WIMG : 4; - u32 : 10; - u32 BRPN : 15; // Physical Block Number - }; + BitField<0, 2, u32> PP; + BitField<2, 1, u32> reserved_1; + BitField<3, 4, u32> WIMG; + BitField<7, 10, u32> reserved_2; + BitField<17, 15, u32> BRPN; // Physical Block Number + u32 Hex = 0; UReg_BAT_Lo() = default; |
