Skip to content

Commit

Permalink
HW/SerialInterface: Refactor to class.
Browse files Browse the repository at this point in the history
  • Loading branch information
AdmiralCurtiss committed Mar 12, 2023
1 parent d371b17 commit bf2f901
Show file tree
Hide file tree
Showing 11 changed files with 469 additions and 461 deletions.
6 changes: 3 additions & 3 deletions Source/Core/Core/HW/HW.cpp
Expand Up @@ -42,7 +42,7 @@ void Init(const Sram* override_sram)
// Init the whole Hardware
system.GetAudioInterface().Init();
system.GetVideoInterface().Init();
SerialInterface::Init();
system.GetSerialInterface().Init();
system.GetProcessorInterface().Init();
system.GetExpansionInterface().Init(override_sram); // Needs to be initialized before Memory
system.GetHSP().Init();
Expand Down Expand Up @@ -79,7 +79,7 @@ void Shutdown()
system.GetMemory().Shutdown();
system.GetHSP().Shutdown();
system.GetExpansionInterface().Shutdown();
SerialInterface::Shutdown();
system.GetSerialInterface().Shutdown();
system.GetAudioInterface().Shutdown();

State::Shutdown();
Expand All @@ -95,7 +95,7 @@ void DoState(PointerWrap& p)
p.DoMarker("MemoryInterface");
system.GetVideoInterface().DoState(p);
p.DoMarker("VideoInterface");
SerialInterface::DoState(p);
system.GetSerialInterface().DoState(p);
p.DoMarker("SerialInterface");
system.GetProcessorInterface().DoState(p);
p.DoMarker("ProcessorInterface");
Expand Down
4 changes: 2 additions & 2 deletions Source/Core/Core/HW/Memmap.cpp
Expand Up @@ -56,14 +56,14 @@ void MemoryManager::InitMMIO(bool is_wii)
system.GetMemoryInterface().RegisterMMIO(m_mmio_mapping.get(), 0x0C004000);
system.GetDSP().RegisterMMIO(m_mmio_mapping.get(), 0x0C005000);
system.GetDVDInterface().RegisterMMIO(m_mmio_mapping.get(), 0x0C006000, false);
SerialInterface::RegisterMMIO(m_mmio_mapping.get(), 0x0C006400);
system.GetSerialInterface().RegisterMMIO(m_mmio_mapping.get(), 0x0C006400);
system.GetExpansionInterface().RegisterMMIO(m_mmio_mapping.get(), 0x0C006800);
system.GetAudioInterface().RegisterMMIO(m_mmio_mapping.get(), 0x0C006C00);
if (is_wii)
{
IOS::RegisterMMIO(m_mmio_mapping.get(), 0x0D000000);
system.GetDVDInterface().RegisterMMIO(m_mmio_mapping.get(), 0x0D006000, true);
SerialInterface::RegisterMMIO(m_mmio_mapping.get(), 0x0D006400);
system.GetSerialInterface().RegisterMMIO(m_mmio_mapping.get(), 0x0D006400);
system.GetExpansionInterface().RegisterMMIO(m_mmio_mapping.get(), 0x0D006800);
system.GetAudioInterface().RegisterMMIO(m_mmio_mapping.get(), 0x0D006C00);
}
Expand Down

0 comments on commit bf2f901

Please sign in to comment.