From 8ac079a647da4681a1a1243c4c26319843530fdd Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 27 Aug 2021 11:16:41 -0400 Subject: [PATCH] Gekko: Convert UReg_MMCR1 over to using Common::BitField --- Source/Core/Core/PowerPC/Gekko.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Source/Core/Core/PowerPC/Gekko.h b/Source/Core/Core/PowerPC/Gekko.h index 750986c7cb..f11f7d6ae5 100644 --- a/Source/Core/Core/PowerPC/Gekko.h +++ b/Source/Core/Core/PowerPC/Gekko.h @@ -643,13 +643,11 @@ union UReg_MMCR0 // MMCR1 - Monitor Mode Control Register 1 format union UReg_MMCR1 { - u32 Hex; - struct - { - u32 : 22; - u32 PMC4SELECT : 5; - u32 PMC3SELECT : 5; - }; + BitField<0, 22, u32> reserved; + BitField<22, 5, u32> PMC4SELECT; + BitField<27, 5, u32> PMC3SELECT; + + u32 Hex = 0; }; // Write Pipe Address Register