gt64xxx: Cap memory space mapping to physical memory bounds. (nw)

seattle: Reduce seattle board to 8 MB ram. (nw)
This commit is contained in:
Ted Green 2017-05-09 11:29:15 -06:00
parent f90f8e154a
commit 790c23ff29
2 changed files with 5 additions and 1 deletions

View File

@ -208,6 +208,10 @@ void gt64xxx_device::map_cpu_space()
{
winStart = (m_reg[GREG_RAS_1_0_LO + 0x10 / 4 * (ramIndex/2)] << 21) | (m_reg[GREG_RAS0_LO + 0x8 / 4 * ramIndex] << 20);
winEnd = (m_reg[GREG_RAS_1_0_LO + 0x10 / 4 * (ramIndex / 2)] << 21) | (m_reg[GREG_RAS0_HI + 0x8 / 4 * ramIndex] << 20) | 0xfffff;
// Cap window end at physical memory bounds
uint32_t winSize = winEnd - winStart + 1;
if (winSize > m_ram[ramIndex].size() * 4)
winEnd = winStart + m_ram[ramIndex].size() * 4 - 1;
//m_ram[ramIndex].resize((winEnd + 1 - winStart) / 4);
if (m_ram[ramIndex].size()>0)
m_cpu_space->install_ram(winStart, winEnd, m_ram[ramIndex].data());

View File

@ -1751,7 +1751,7 @@ static MACHINE_CONFIG_START( seattle_common, seattle_state )
MCFG_GT64XXX_SET_CS(1, seattle_cs1_map)
MCFG_GT64XXX_SET_CS(2, seattle_cs2_map)
MCFG_GT64XXX_SET_CS(3, seattle_cs3_map)
MCFG_GT64XX_SET_SIMM0(0x00c00000)
MCFG_GT64XX_SET_SIMM0(0x00800000)
MCFG_IDE_PCI_ADD(PCI_ID_IDE, 0x100b0002, 0x01, 0x0)
MCFG_IDE_PCI_IRQ_ADD(":maincpu", IDE_IRQ_NUM)