From 86de260b245de535fe839182a2e4d23d75da265e Mon Sep 17 00:00:00 2001 From: OBattler Date: Fri, 7 Jun 2024 14:19:10 +0200 Subject: [PATCH] mem.c: Double the pages array size for 386SX, fixes the segmentation fault when trying to use the Amstrad MegaPC with more than 16 MB and the 486+ interpreter. --- src/mem/mem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mem/mem.c b/src/mem/mem.c index be097b5f3..5fe7f3c29 100644 --- a/src/mem/mem.c +++ b/src/mem/mem.c @@ -2833,8 +2833,8 @@ mem_reset(void) */ if (is286) { if (cpu_16bitbus) { - /* 80286/386SX; maximum address space is 16MB. */ - m = 4096; + /* 80286/386SX; maximum address space is 16MB + 16 MB for EMS. */ + m = 8192; /* ALi M6117; maximum address space is 64MB. */ if (is6117) m <<= 2;