Implemented the SMRAM register for the 430FX.
This commit is contained in:
@@ -133,6 +133,10 @@ static void i430fx_write(int func, int addr, uint8_t val, void *priv)
|
|||||||
i430fx_map(0xec000, 0x04000, val >> 4);
|
i430fx_map(0xec000, 0x04000, val >> 4);
|
||||||
pclog("i430fx_write : PAM6 write %02X\n", val);
|
pclog("i430fx_write : PAM6 write %02X\n", val);
|
||||||
break;
|
break;
|
||||||
|
case 0x72: /*SMRAM*/
|
||||||
|
if ((card_i430fx[0x72] ^ val) & 0x48)
|
||||||
|
i430fx_map(0xa0000, 0x20000, ((val & 0x48) == 0x48) ? 3 : 0);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
card_i430fx[addr] = val;
|
card_i430fx[addr] = val;
|
||||||
@@ -185,6 +189,7 @@ static void i430fx_reset(void)
|
|||||||
static void i430fx_pci_reset(void)
|
static void i430fx_pci_reset(void)
|
||||||
{
|
{
|
||||||
i430fx_write(0, 0x59, 0x00, NULL);
|
i430fx_write(0, 0x59, 0x00, NULL);
|
||||||
|
i430fx_write(0, 0x72, 0x02, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user