From e88a0acaa4cb82fd591601eff8c0d6cdbafa6199 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 31 Aug 2026 13:02:53 +0200 Subject: [PATCH] Core: fix parens in the unaligned-access reason check Written as (2 || 4 || 8 || misaligned), so every 2/4/8-byte access got labeled '(unaligned)' and a genuinely misaligned larger access never reached the struct branch. Log text only. --- Core/Core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Core.cpp b/Core/Core.cpp index 8c5e8c5156..bee40b41f8 100644 --- a/Core/Core.cpp +++ b/Core/Core.cpp @@ -913,7 +913,7 @@ void Core_MemoryExceptionHLE(MIPSState *mips, u32 address, u32 accessSize, Memor // We try to derive the reason here, though maybe it should be passed in explicitly? // TODO: This check should probably be added to regular memory accesses too. if (Memory::IsValidAddress(address)) { - if (accessSize == 2 || accessSize == 4 || accessSize == 8 || (address & (accessSize - 1))) { + if ((accessSize == 2 || accessSize == 4 || accessSize == 8) && (address & (accessSize - 1))) { extra = " (unaligned)"; } else if (accessSize > 8 && (accessSize & 3)) { extra = " (unaligned struct)";