summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/magictg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/magictg.cpp')
-rw-r--r--src/mame/drivers/magictg.cpp25
1 files changed, 11 insertions, 14 deletions
diff --git a/src/mame/drivers/magictg.cpp b/src/mame/drivers/magictg.cpp
index b95338367fa..9a749b09e5b 100644
--- a/src/mame/drivers/magictg.cpp
+++ b/src/mame/drivers/magictg.cpp
@@ -159,7 +159,7 @@ public:
void magictg(machine_config &config);
private:
- required_device<cpu_device> m_mips;
+ required_device<mips3_device> m_mips;
required_device<adsp2181_device> m_adsp;
required_device<pci_bus_legacy_device> m_pci;
@@ -911,24 +911,21 @@ INPUT_PORTS_END
*************************************/
MACHINE_CONFIG_START(magictg_state::magictg)
- MCFG_DEVICE_ADD("mips", R5000BE, 150000000) /* TODO: CPU type and clock are unknown */
- //MCFG_MIPS3_ICACHE_SIZE(16384) /* TODO: Unknown */
- //MCFG_MIPS3_DCACHE_SIZE(16384) /* TODO: Unknown */
- MCFG_DEVICE_PROGRAM_MAP(magictg_map)
+ R5000BE(config, m_mips, 150000000); /* TODO: CPU type and clock are unknown */
+ //m_mips->set_icache_size(16384); /* TODO: Unknown */
+ //m_mips->set_dcache_size(16384); /* TODO: Unknown */
+ m_mips->set_addrmap(AS_PROGRAM, &magictg_state::magictg_map);
- MCFG_DEVICE_ADD("adsp", ADSP2181, 16000000)
- MCFG_DEVICE_PROGRAM_MAP(adsp_program_map)
- MCFG_DEVICE_DATA_MAP(adsp_data_map)
- MCFG_DEVICE_IO_MAP(adsp_io_map)
+ ADSP2181(config, m_adsp, 16000000);
+ m_adsp->set_addrmap(AS_PROGRAM, &magictg_state::adsp_program_map);
+ m_adsp->set_addrmap(AS_DATA, &magictg_state::adsp_data_map);
+ m_adsp->set_addrmap(AS_IO, &magictg_state::adsp_io_map);
SPEAKER(config, "lspeaker").front_left();
SPEAKER(config, "rspeaker").front_right();
- MCFG_DEVICE_ADD("dac1", DMADAC)
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 1.0)
-
- MCFG_DEVICE_ADD("dac2", DMADAC)
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0)
+ DMADAC(config, "dac1").add_route(ALL_OUTPUTS, "rspeaker", 1.0);
+ DMADAC(config, "dac2").add_route(ALL_OUTPUTS, "lspeaker", 1.0);
MCFG_PCI_BUS_LEGACY_ADD("pcibus", 0)
MCFG_PCI_BUS_LEGACY_DEVICE(0, DEVICE_SELF, magictg_state, pci_dev0_r, pci_dev0_w)