tms32031: Remove direct update handler [O. Galibert]

This commit is contained in:
Olivier Galibert 2017-03-08 17:45:27 +01:00
parent 92498df199
commit 3e2263f86f
2 changed files with 3 additions and 16 deletions

View File

@ -290,20 +290,6 @@ tms32032_device::tms32032_device(const machine_config &mconfig, const char *tag,
{
}
DIRECT_UPDATE_MEMBER( tms3203x_device::direct_handler )
{
// internal boot loader ROM
if (m_mcbl_mode && address < (0x1000 << 2))
{
direct.explicit_configure(0x000000, 0x003fff, 0x003fff, m_bootrom);
return (offs_t)-1;
}
return address;
}
//-------------------------------------------------
// ~tms3203x_device - destructor
//-------------------------------------------------
@ -339,6 +325,9 @@ const tiny_rom_entry *tms3203x_device::device_rom_region() const
inline uint32_t tms3203x_device::ROPCODE(offs_t pc)
{
if (m_mcbl_mode && pc < 0x1000)
return m_bootrom[pc];
return m_direct->read_dword(pc << 2);
}
@ -383,7 +372,6 @@ void tms3203x_device::device_start()
// set up the internal boot loader ROM
m_bootrom = reinterpret_cast<uint32_t*>(memregion(shortname())->base());
m_direct->set_direct_update(direct_update_delegate(&tms3203x_device::direct_handler, this));
// save state
save_item(NAME(m_pc));

View File

@ -187,7 +187,6 @@ protected:
virtual offs_t disasm_disassemble(std::ostream &stream, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options) override;
// memory helpers
DECLARE_DIRECT_UPDATE_MEMBER(direct_handler);
uint32_t ROPCODE(offs_t pc);
uint32_t RMEM(offs_t addr);
void WMEM(offs_t addr, uint32_t data);