summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/hng64.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2009-03-07 08:54:03 +0000
committer Aaron Giles <aaron@aarongiles.com>2009-03-07 08:54:03 +0000
commit75f0ff10d115ba6634dd6fa51f2bd1ba84fd6b84 (patch)
treea79cf5cf5432da3995b64a79454a55fd0723ae32 /src/mame/drivers/hng64.c
parent2f9ee68652a09ad7bcea621c46cff2c6cdbeea76 (diff)
Added function calls to replace the MIPS3 DRC's various CPU_SET_INFO
bits. Fixed DCS2 speedup handler so it doesn't get lost during a memory remap.
Diffstat (limited to 'src/mame/drivers/hng64.c')
-rw-r--r--src/mame/drivers/hng64.c33
1 files changed, 11 insertions, 22 deletions
diff --git a/src/mame/drivers/hng64.c b/src/mame/drivers/hng64.c
index ae666e5a51b..b6b9afbc07d 100644
--- a/src/mame/drivers/hng64.c
+++ b/src/mame/drivers/hng64.c
@@ -1451,6 +1451,16 @@ static INTERRUPT_GEN( irq_start )
}
+static MACHINE_START(hyperneo)
+{
+ /* set the fastest DRC options */
+ mips3drc_set_options(machine->cpu[0], MIPS3DRC_FASTEST_OPTIONS + MIPS3DRC_STRICT_VERIFY);
+
+ /* configure fast RAM regions for DRC */
+ mips3drc_add_fastram(machine->cpu[0], 0x00000000, 0x00ffffff, FALSE, hng_mainram);
+ mips3drc_add_fastram(machine->cpu[0], 0x04000000, 0x05ffffff, TRUE, hng_cart);
+ mips3drc_add_fastram(machine->cpu[0], 0x1fc00000, 0x1fc7ffff, TRUE, rombase);
+}
static MACHINE_RESET(hyperneo)
@@ -1487,28 +1497,6 @@ static MACHINE_RESET(hyperneo)
// "Display List" init - ugly
activeBuffer = 0 ;
-
- /* set the fastest DRC options */
- device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_DRC_OPTIONS, MIPS3DRC_FASTEST_OPTIONS + MIPS3DRC_STRICT_VERIFY);
-
- /* configure fast RAM regions for DRC */
- device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_SELECT, 0);
- device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_START, 0x00000000);
- device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_END, 0x00ffffff);
- device_set_info_ptr(machine->cpu[0], CPUINFO_PTR_MIPS3_FASTRAM_BASE, hng_mainram);
- device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_READONLY, 0);
-
- device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_SELECT, 1);
- device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_START, 0x04000000);
- device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_END, 0x05ffffff);
- device_set_info_ptr(machine->cpu[0], CPUINFO_PTR_MIPS3_FASTRAM_BASE, hng_cart);
- device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_READONLY, 1);
-
- device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_SELECT, 2);
- device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_START, 0x1fc00000);
- device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_END, 0x1fc7ffff);
- device_set_info_ptr(machine->cpu[0], CPUINFO_PTR_MIPS3_FASTRAM_BASE, rombase);
- device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_READONLY, 1);
}
@@ -1527,6 +1515,7 @@ static MACHINE_DRIVER_START( hng64 )
MDRV_CPU_IO_MAP(hng_comm_io_map, 0)
MDRV_GFXDECODE(hng64)
+ MDRV_MACHINE_START(hyperneo)
MDRV_MACHINE_RESET(hyperneo)
MDRV_SCREEN_ADD("screen", RASTER)