mips: require 8-byte stack alignment

The o32 ABI requires at least 8-byte alignment. This fixes
the float formatting weirdness seen in quake (FS#13821).

Change-Id: I4b587946884d7b35cef420e607c7e127664849e2
This commit is contained in:
Aidan MacDonald 2026-04-25 12:36:46 +01:00
parent 2690418551
commit 80e3c0b065

View file

@ -266,8 +266,10 @@ static inline void cpu_boost_unlock(void)
#endif #endif
#endif #endif
/* ARM ABIs generally require 8-byte stack alignment */ /*
#ifdef CPU_ARM * ARM and MIPS ABIs generally require 8-byte stack alignment.
*/
#if defined(CPU_ARM) || defined(CPU_MIPS)
#define MIN_STACK_ALIGN 8 #define MIN_STACK_ALIGN 8
#endif #endif