aarch64 lto broken GPU2D workaround

This commit is contained in:
RSDuck 2024-11-18 20:08:49 +01:00
parent c01b2bf7a0
commit cb7af652f5
1 changed files with 3 additions and 0 deletions

View File

@ -914,6 +914,9 @@ void SoftRenderer::DrawBG_3D()
template<bool mosaic, SoftRenderer::DrawPixel drawPixel> template<bool mosaic, SoftRenderer::DrawPixel drawPixel>
void SoftRenderer::DrawBG_Text(u32 line, u32 bgnum) 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]; u16 bgcnt = CurUnit->BGCnt[bgnum];
u32 tilesetaddr, tilemapaddr; u32 tilesetaddr, tilemapaddr;