From ef2e9e20932b142e53b200bbea0295d537bd2bd5 Mon Sep 17 00:00:00 2001 From: "Jake.Stine" Date: Wed, 4 Mar 2009 21:48:26 +0000 Subject: [PATCH] SPU2-X: Fixes alignment condition for SSE2-dependent members of V_Core. I wanted to sneak this in quick since to do it later would have meant another savestate version. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@681 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/spu2-x/src/defs.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/plugins/spu2-x/src/defs.h b/plugins/spu2-x/src/defs.h index 7647ee6a7f..aaabe1683f 100644 --- a/plugins/spu2-x/src/defs.h +++ b/plugins/spu2-x/src/defs.h @@ -332,18 +332,19 @@ struct V_Core { static const uint NumVoices = 24; -// Core Voices - V_Voice Voices[NumVoices]; + // Voice Gates -- These are SSE-related values, and must always be + // first to ensure 16 byte alignment + V_VoiceGates VoiceGates[NumVoices]; + V_CoreGates DryGate; + V_CoreGates WetGate; V_VolumeSlideLR MasterVol;// Master Volume - V_VolumeLR ExtVol; // Volume for External Data Input V_VolumeLR InpVol; // Volume for Sound Data Input V_VolumeLR FxVol; // Volume for Output from Effects - V_CoreGates DryGate; - V_CoreGates WetGate; + V_Voice Voices[NumVoices]; // Interrupt Address u32 IRQA;