From 408f155f539a62510cf0ef295d19e90711e025bf Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Fri, 6 Mar 2026 13:37:27 -0500 Subject: [PATCH] build: fix red in 7eeb4e4302 STORAGE_WANTS_ALIGN needs to be ignored for simulator builds Change-Id: I4d788f91d3d1ed81c0621b9adac985ca188d918c --- firmware/export/system.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/export/system.h b/firmware/export/system.h index fd8f7cae01..e1d999dcd8 100644 --- a/firmware/export/system.h +++ b/firmware/export/system.h @@ -203,7 +203,7 @@ enum { MAXMEMGUARD }; -#if !defined(SIMULATOR) && !defined(__PCTOOL__) +#if !defined(SIMULATOR) && !defined(__PCTOOL__) #include "system-target.h" #elif defined(HAVE_SDL) /* SDL build */ #include "system-sdl.h" @@ -326,7 +326,7 @@ static inline void cpu_boost_unlock(void) #define STORAGE_WANTS_ALIGN #endif -#ifdef STORAGE_WANTS_ALIGN +#if defined(STORAGE_WANTS_ALIGN) && !defined(SIMULATOR) #define STORAGE_ALIGN_ATTR __attribute__((aligned(CACHEALIGN_SIZE))) #define STORAGE_ALIGN_DOWN(x) \ ((typeof (x))ALIGN_DOWN_P2((uintptr_t)(x), CACHEALIGN_BITS))