# HG changeset patch # User Michael Pavone # Date 1700541670 28800 # Node ID 1b4ddca07640e214ef0656c0b9aa9ddbf6df5ec8 # Parent d3479965e63107edd2ea767403036f8445d0947f Fix Sega CD regression in 32-bit builds diff -r d3479965e631 -r 1b4ddca07640 m68k_core.h --- a/m68k_core.h Mon Nov 20 20:20:14 2023 -0800 +++ b/m68k_core.h Mon Nov 20 20:41:10 2023 -0800 @@ -80,6 +80,12 @@ uint32_t address; } m68k_breakpoint; +#ifdef X86_64 +#define M68K_STACK_STORAGE 12 +#else +#define M68K_STACK_STORAGE 20 +#endif + struct m68k_context { uint8_t flags[5]; uint8_t status; @@ -99,7 +105,7 @@ m68k_options *options; void *system; void *host_sp_entry; - void *stack_storage[12]; + void *stack_storage[M68K_STACK_STORAGE]; m68k_breakpoint *breakpoints; uint32_t num_breakpoints; uint32_t bp_storage;