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.

This commit is contained in:
OBattler
2024-06-07 14:19:10 +02:00
parent 2d0274c904
commit 86de260b24

View File

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