summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2021-08-27 11:30:04 -0400
committerLioncash <mathew1800@gmail.com>2021-08-29 06:16:55 -0400
commitdbf8e27d7f85bb891a37d0355b3cb412c5fb675b (patch)
tree27b487f3135c92d79a3ff2e9a7d10926db848d8d /Source/Core
parente4e1b6064de9fec04c2ac3948305827a9c07f46c (diff)
Gekko: Convert UReg_PTE over to using Common::BitField
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/PowerPC/Gekko.h25
1 files changed, 11 insertions, 14 deletions
diff --git a/Source/Core/Core/PowerPC/Gekko.h b/Source/Core/Core/PowerPC/Gekko.h
index eff0517090..97ead7f37a 100644
--- a/Source/Core/Core/PowerPC/Gekko.h
+++ b/Source/Core/Core/PowerPC/Gekko.h
@@ -748,20 +748,17 @@ union UReg_THRM3
union UReg_PTE
{
- struct
- {
- u64 API : 6;
- u64 H : 1;
- u64 VSID : 24;
- u64 V : 1;
- u64 PP : 2;
- u64 : 1;
- u64 WIMG : 4;
- u64 C : 1;
- u64 R : 1;
- u64 : 3;
- u64 RPN : 20;
- };
+ BitField<0, 6, u64> API;
+ BitField<6, 1, u64> H;
+ BitField<7, 24, u64> VSID;
+ BitField<31, 1, u64> V;
+ BitField<32, 2, u64> PP;
+ BitField<34, 1, u64> reserved_1;
+ BitField<35, 4, u64> WIMG;
+ BitField<39, 1, u64> C;
+ BitField<40, 1, u64> R;
+ BitField<41, 3, u64> reserved_2;
+ BitField<44, 20, u64> RPN;
u64 Hex = 0;
u32 Hex32[2];