From 12b87922fbecd19d806367adb68e29988ecdf3d2 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 27 Aug 2021 11:23:47 -0400 Subject: [PATCH] Gekko: Convert UReg_BAT_Lo over to using Common::BitField --- Source/Core/Core/PowerPC/Gekko.h | 14 ++++++-------- 1 file 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;