DSP: Make mailboxes private
These aren't used externally anywhere and can be made private.
This commit is contained in:
parent
024e983c3a
commit
f9d8d06037
|
@ -387,8 +387,8 @@ void SDSP::DoState(PointerWrap& p)
|
|||
p.Do(step_counter);
|
||||
p.DoArray(ifx_regs);
|
||||
accelerator->DoState(p);
|
||||
p.Do(mbox[0]);
|
||||
p.Do(mbox[1]);
|
||||
p.Do(m_mailbox[0]);
|
||||
p.Do(m_mailbox[1]);
|
||||
Common::UnWriteProtectMemory(iram, DSP_IRAM_BYTE_SIZE, false);
|
||||
p.DoArray(iram, DSP_IRAM_SIZE);
|
||||
Common::WriteProtectMemory(iram, DSP_IRAM_BYTE_SIZE, false);
|
||||
|
|
|
@ -429,9 +429,6 @@ struct SDSP
|
|||
u32 iram_crc = 0;
|
||||
u64 step_counter = 0;
|
||||
|
||||
// Mailbox.
|
||||
std::atomic<u32> mbox[2];
|
||||
|
||||
// Accelerator / DMA / other hardware registers. Not GPRs.
|
||||
std::array<u16, 256> ifx_regs{};
|
||||
|
||||
|
@ -445,8 +442,8 @@ struct SDSP
|
|||
u16* coef = nullptr;
|
||||
|
||||
private:
|
||||
auto& GetMailbox(Mailbox mailbox) { return mbox[static_cast<u32>(mailbox)]; }
|
||||
const auto& GetMailbox(Mailbox mailbox) const { return mbox[static_cast<u32>(mailbox)]; }
|
||||
auto& GetMailbox(Mailbox mailbox) { return m_mailbox[static_cast<u32>(mailbox)]; }
|
||||
const auto& GetMailbox(Mailbox mailbox) const { return m_mailbox[static_cast<u32>(mailbox)]; }
|
||||
|
||||
void FreeMemoryPages();
|
||||
|
||||
|
@ -458,6 +455,7 @@ private:
|
|||
|
||||
u16 ReadIFXImpl(u16 address);
|
||||
|
||||
std::atomic<u32> m_mailbox[2];
|
||||
DSPCore& m_dsp_core;
|
||||
Analyzer m_analyzer;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue