diff options
| author | Tilka <tilkax@gmail.com> | 2025-07-19 20:13:18 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-19 20:13:18 +0100 |
| commit | 5cc0a5a3be68c77a7119fab15178f4fd2ab54c54 (patch) | |
| tree | 1871f8d6a180cc047d08387e45eaad856acf7616 /Source/Core | |
| parent | 2da774b2f7aa42fcb613a0f9a2e8cc4e8a037733 (diff) | |
| parent | 6a55a1bf68981f4ca2545939bd8a59c624b5059e (diff) | |
Merge pull request #13816 from Tilka/fix_di_init
WII_IPC: fix homebrew that uses the disc drive
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/HW/WII_IPC.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/Core/HW/WII_IPC.cpp b/Source/Core/Core/HW/WII_IPC.cpp index 8ce63d7c1f..c99c8afbf0 100644 --- a/Source/Core/Core/HW/WII_IPC.cpp +++ b/Source/Core/Core/HW/WII_IPC.cpp @@ -41,6 +41,8 @@ enum ARM_IRQFLAG = 0x38, ARM_IRQMASK = 0x3c, + AHBPROT = 0x64, + GPIOB_OUT = 0xc0, GPIOB_DIR = 0xc4, GPIOB_IN = 0xc8, @@ -169,6 +171,9 @@ void WiiIPC::RegisterMMIO(MMIO::Mapping* mmio, u32 base) 0); })); + // Dolphin currently does not emulate any hardware access restrictions. + mmio->Register(base | AHBPROT, MMIO::Constant<u32>(0xFFFFFFFF), MMIO::InvalidWrite<u32>()); + mmio->Register(base | GPIOB_OUT, MMIO::DirectRead<u32>(&m_gpio_out.m_hex), MMIO::ComplexWrite<u32>([](Core::System& system, u32, u32 val) { auto& wii_ipc = system.GetWiiIPC(); |
