From 1e4ecfe3d4e42b1fc560a9c38f7e46674af4a571 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 27 Aug 2021 11:20:37 -0400 Subject: [PATCH] Gekko: Convert UReg_DMAL 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 4c077ae5ed..44795ed8f2 100644 --- a/Source/Core/Core/PowerPC/Gekko.h +++ b/Source/Core/Core/PowerPC/Gekko.h @@ -678,14 +678,12 @@ union UReg_DMAU // Direct Memory Access Lower (DMAL) register union UReg_DMAL { - struct - { - u32 DMA_F : 1; - u32 DMA_T : 1; - u32 DMA_LEN_L : 2; - u32 DMA_LD : 1; - u32 LC_ADDR : 27; - }; + BitField<0, 1, u32> DMA_F; + BitField<1, 1, u32> DMA_T; + BitField<2, 2, u32> DMA_LEN_L; + BitField<4, 1, u32> DMA_LD; + BitField<5, 27, u32> LC_ADDR; + u32 Hex = 0; UReg_DMAL() = default;