From e1f41bab1cbd5358836ec69020bd488ce5999b9d Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 29 Dec 2020 12:27:54 -0500 Subject: [PATCH] DSP: Make mailboxes use std::array Makes the array strongly typed and prevents pointer decay. This also allows for tuning bounds checks with various implementations. --- Source/Core/Core/DSP/DSPCore.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/DSP/DSPCore.h b/Source/Core/Core/DSP/DSPCore.h index c57a35f4c1..60b317eecf 100644 --- a/Source/Core/Core/DSP/DSPCore.h +++ b/Source/Core/Core/DSP/DSPCore.h @@ -455,7 +455,7 @@ private: u16 ReadIFXImpl(u16 address); - std::atomic m_mailbox[2]; + std::array, 2> m_mailbox; DSPCore& m_dsp_core; Analyzer m_analyzer; };