Mercurial > repos > blastem
changeset 2382:1b4ddca07640
Fix Sega CD regression in 32-bit builds
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 20 Nov 2023 20:41:10 -0800 |
parents | d3479965e631 |
children | ee0cc07dc406 |
files | m68k_core.h |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;