misc: remove unneeded calls to driver_device

This commit is contained in:
hap 2022-11-07 12:38:17 +01:00
parent 1f1451dfa9
commit 7edbd5bf42
4 changed files with 2 additions and 7 deletions

View File

@ -426,7 +426,7 @@ void liberatr_state::liberatr(machine_config &config)
/* basic machine hardware */ /* basic machine hardware */
m6502_device &maincpu(M6502(config, "maincpu", MASTER_CLOCK/16)); /* 1.25Mhz divided from 20Mhz master clock */ m6502_device &maincpu(M6502(config, "maincpu", MASTER_CLOCK/16)); /* 1.25Mhz divided from 20Mhz master clock */
maincpu.set_addrmap(AS_PROGRAM, &liberatr_state::liberatr_map); maincpu.set_addrmap(AS_PROGRAM, &liberatr_state::liberatr_map);
maincpu.set_periodic_int(FUNC(driver_device::irq0_line_hold), attotime::from_hz(4*60)); maincpu.set_periodic_int(FUNC(liberatr_state::irq0_line_hold), attotime::from_hz(4*60));
ER2055(config, m_earom); ER2055(config, m_earom);

View File

@ -124,7 +124,6 @@ void gscpm_state::switch_to_ram_w(uint8_t data)
void gscpm_state::machine_reset() void gscpm_state::machine_reset()
{ {
driver_device::machine_reset();
// Install the ROM handler here // Install the ROM handler here
m_maincpu->space(AS_PROGRAM).unmap_readwrite(0x0000, 0x3fff); // Unmap RAM handler if being rebooted m_maincpu->space(AS_PROGRAM).unmap_readwrite(0x0000, 0x3fff); // Unmap RAM handler if being rebooted
m_maincpu->space(AS_PROGRAM).install_rom(0x0000, 0x3fff, memregion("maincpu")->base()); m_maincpu->space(AS_PROGRAM).install_rom(0x0000, 0x3fff, memregion("maincpu")->base());

View File

@ -511,7 +511,7 @@ void notechan_state::notechan(machine_config &config)
Z80(config, m_maincpu, CPU_CLOCK); // unknown... Z80(config, m_maincpu, CPU_CLOCK); // unknown...
m_maincpu->set_addrmap(AS_PROGRAM, &notechan_state::notechan_map); m_maincpu->set_addrmap(AS_PROGRAM, &notechan_state::notechan_map);
m_maincpu->set_addrmap(AS_IO, &notechan_state::notechan_port_map); m_maincpu->set_addrmap(AS_IO, &notechan_state::notechan_port_map);
m_maincpu->set_periodic_int(FUNC(driver_device::irq0_line_hold), attotime::from_hz(60)); m_maincpu->set_periodic_int(FUNC(notechan_state::irq0_line_hold), attotime::from_hz(60));
/* NO VIDEO */ /* NO VIDEO */

View File

@ -243,8 +243,6 @@ void mc10_state::driver_reset()
void mc10_state::driver_start() void mc10_state::driver_start()
{ {
driver_device::driver_start();
save_item(NAME(m_keyboard_strobe)); save_item(NAME(m_keyboard_strobe));
address_space &space = m_maincpu->space(AS_PROGRAM); address_space &space = m_maincpu->space(AS_PROGRAM);
@ -259,8 +257,6 @@ void mc10_state::driver_start()
void alice32_state::driver_start() void alice32_state::driver_start()
{ {
driver_device::driver_start();
save_item(NAME(m_keyboard_strobe)); save_item(NAME(m_keyboard_strobe));
address_space &space = m_maincpu->space(AS_PROGRAM); address_space &space = m_maincpu->space(AS_PROGRAM);