From 508790445c6d16238d12e351335b4a34d4659386 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Sun, 26 Jul 2020 17:46:55 -0700 Subject: [PATCH] SM83: Fix flags on little endian PowerPC --- CHANGES | 1 + include/mgba/internal/sm83/sm83.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 4255015f2..848281e0f 100644 --- a/CHANGES +++ b/CHANGES @@ -10,6 +10,7 @@ Emulation fixes: - GBA BIOS: Fix reloading video registers after reset (fixes mgba.io/i/1808) - GBA Video: Fix invalid read in mode 4 mosaic - GBA Video: Fix color of disabled screen + - SM83: Fix flags on little endian PowerPC Other fixes: - All: Correct format strings for some numbers on Windows (fixes mgba.io/i/1794) - All: Correct more format strings on Windows (fixes mgba.io/i/1817) diff --git a/include/mgba/internal/sm83/sm83.h b/include/mgba/internal/sm83/sm83.h index e2cf89540..2d1efe6fc 100644 --- a/include/mgba/internal/sm83/sm83.h +++ b/include/mgba/internal/sm83/sm83.h @@ -18,7 +18,7 @@ struct SM83Core; #pragma pack(push, 1) union FlagRegister { struct { -#if defined(__POWERPC__) || defined(__PPC__) +#ifdef __BIG_ENDIAN__ unsigned z : 1; unsigned n : 1; unsigned h : 1;