From 5cdad0ed20690dc169bc500cf13ad58d265ccec6 Mon Sep 17 00:00:00 2001 From: refraction Date: Fri, 23 Nov 2012 17:47:08 +0000 Subject: [PATCH] GSNull: Change the register set definitions to structs instead of unions so it ACTUALLY writes the data to the registers, rather than just writing to 2 predefined variables then being overwritten the next time a write is done to something else :P git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5461 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/GSnull/Registers.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/plugins/GSnull/Registers.h b/plugins/GSnull/Registers.h index 75c8aaffd0..ca9fbd590b 100644 --- a/plugins/GSnull/Registers.h +++ b/plugins/GSnull/Registers.h @@ -323,22 +323,16 @@ union name \ #define REG_END2 }; #define REG32_SET(name) \ -union name \ +struct name \ { \ - u32 _u32; \ #define REG64_SET(name) \ -union name \ +struct name \ { \ - u64 _u64; \ - u32 _u32[2]; \ #define REG128_SET(name)\ -union name \ +struct name \ { \ - __m128i _m128; \ - u64 _u64[2]; \ - u32 _u32[4]; \ #define REG_SET_END };