build: fix red in 7eeb4e4302

STORAGE_WANTS_ALIGN needs to be ignored for simulator builds

Change-Id: I4d788f91d3d1ed81c0621b9adac985ca188d918c
This commit is contained in:
Solomon Peachy 2026-03-06 13:37:27 -05:00
parent 7eeb4e4302
commit 408f155f53

View file

@ -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))