Don't mirror VRAM at 1 MB for Phoenix Trio64 with 1 MB. Fixes memory size detection.

This is most likely a difference in memory mapping between FPM and EDO Trio64 configurations.
This commit is contained in:
SarahW 2017-11-28 19:47:46 +00:00
commit e12eb0ff0d

View file

@ -2236,6 +2236,8 @@ static void *s3_init(char *bios_fn, int chip)
break;
case 1: /*1MB*/
/*VRAM in first MB, mirrored in 2nd MB, 3rd and 4th MBs are open bus*/
/*This works with the #9 9FX BIOS, and matches how my real Trio64 behaves,
but does not work with the Phoenix EDO BIOS. Possibly an FPM/EDO difference?*/
svga->vram_mask = (1 << 20) - 1;
svga->vram_max = 2 << 20;
break;
@ -2344,6 +2346,8 @@ void *s3_phoenix_trio64_init()
s3->id = 0xe1; /*Trio64*/
s3->id_ext = s3->id_ext_pci = 0x11;
s3->packed_mmio = 1;
if (device_get_config_int("memory") == 1)
s3->svga.vram_max = 1 << 20; /*Phoenix BIOS does not expect VRAM to be mirrored*/
s3->getclock = s3_trio64_getclock;
s3->getclock_p = s3;