void kinst_state::machine_start() { /* set the fastest DRC options */ mips3drc_set_options(m_maincpu, MIPS3DRC_FASTEST_OPTIONS); /* configure fast RAM regions for DRC */ mips3drc_add_fastram(m_maincpu, 0x08000000, 0x087fffff, FALSE, m_rambase2); mips3drc_add_fastram(m_maincpu, 0x00000000, 0x0007ffff, FALSE, m_rambase); mips3drc_add_fastram(m_maincpu, 0x1fc00000, 0x1fc7ffff, TRUE, m_rombase); }
static MACHINE_START( kinst ) { kinst_state *state = machine.driver_data<kinst_state>(); device_t *ide = machine.device("ide"); UINT8 *features = ide_get_features(ide,0); if (strncmp(machine.system().name, "kinst2", 6) != 0) { /* kinst: tweak the model number so we pass the check */ features[27*2+0] = 0x54; features[27*2+1] = 0x53; features[28*2+0] = 0x31; features[28*2+1] = 0x39; features[29*2+0] = 0x30; features[29*2+1] = 0x35; features[30*2+0] = 0x47; features[30*2+1] = 0x41; features[31*2+0] = 0x20; features[31*2+1] = 0x20; } else { /* kinst2: tweak the model number so we pass the check */ features[10*2+0] = 0x30; features[10*2+1] = 0x30; features[11*2+0] = 0x54; features[11*2+1] = 0x53; features[12*2+0] = 0x31; features[12*2+1] = 0x39; features[13*2+0] = 0x30; features[13*2+1] = 0x35; features[14*2+0] = 0x47; features[14*2+1] = 0x41; } /* set the fastest DRC options */ mips3drc_set_options(machine.device("maincpu"), MIPS3DRC_FASTEST_OPTIONS); /* configure fast RAM regions for DRC */ mips3drc_add_fastram(machine.device("maincpu"), 0x08000000, 0x087fffff, FALSE, state->m_rambase2); mips3drc_add_fastram(machine.device("maincpu"), 0x00000000, 0x0007ffff, FALSE, state->m_rambase); mips3drc_add_fastram(machine.device("maincpu"), 0x1fc00000, 0x1fc7ffff, TRUE, state->m_rombase); }