[hatari-devel] Allowing/supporting additional ST-RAM amounts?

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Hi,

What else than the attached patch is needed to properly support additional ST-RAM amount?

I'm asking because the real max ST-RAM limit for TT and MegaSTE machines is 10MB (not 8MB nor 14MB that Hatari currently allows).

There e.g. seems to be this magic for Falcon:
https://git.tuxfamily.org/hatari/hatari.git/tree/src/stMemory.c#n388

So I'm wondering whether the memory validation should actually be done per machine, instead of using same validation for all of them?


	- Eero

--- a/src/stMemory.c
+++ b/src/stMemory.c
@@ -799,7 +799,7 @@ int	STMemory_RAM_Validate_Size_KB ( int TotalMem )
 	/* New format where ST RAM size is in KB */
 	if (  ( TotalMem ==  128 ) || ( TotalMem ==  256 ) || ( TotalMem ==  512 ) || ( TotalMem ==  640 )
 		|| ( TotalMem == 1024 ) || ( TotalMem == 2048 ) || ( TotalMem == 2176 ) || ( TotalMem == 2560 )
-		|| ( TotalMem == 4096 )	|| ( TotalMem == 8*1024 ) || ( TotalMem == 14*1024 ) )
+		|| ( TotalMem == 4096 ) || ( TotalMem == 8*1024 ) || ( TotalMem == 10*1024 ) || ( TotalMem == 14*1024 ) )
 		return TotalMem;
 
 	return -1;


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/