mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
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.
This commit is contained in:
1 parent
7604ae67ff
commit
e88a0acaa4
1 file changed
+1
-1
+1
-1
@@ -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)";
|
||||
|
||||
Reference in new issue
Block a user