From cb7af652f583d54aad07253a0ff78e478c641f1e Mon Sep 17 00:00:00 2001 From: RSDuck Date: Mon, 18 Nov 2024 20:08:49 +0100 Subject: [PATCH] aarch64 lto broken GPU2D workaround --- src/GPU2D_Soft.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/GPU2D_Soft.cpp b/src/GPU2D_Soft.cpp index 6ad2cd3e..01dade2b 100644 --- a/src/GPU2D_Soft.cpp +++ b/src/GPU2D_Soft.cpp @@ -914,6 +914,9 @@ void SoftRenderer::DrawBG_3D() template void SoftRenderer::DrawBG_Text(u32 line, u32 bgnum) { + // workaround for backgrounds missing on aarch64 with lto build + asm volatile ("" : : : "memory"); + u16 bgcnt = CurUnit->BGCnt[bgnum]; u32 tilesetaddr, tilemapaddr;