summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2017-03-08 17:45:27 +0100
committer Olivier Galibert <galibert@pobox.com>2017-03-08 17:45:27 +0100
commit3e2263f86fb2916da13093e2ab1d006cd98e1952 (patch)
treeb35e30a01db66459c6bb580cd77650211a818499
parent92498df199420f5791ea331a51335f2c8933d917 (diff)
tms32031: Remove direct update handler [O. Galibert]
-rw-r--r--src/devices/cpu/tms32031/tms32031.cpp18
-rw-r--r--src/devices/cpu/tms32031/tms32031.h1
2 files changed, 3 insertions, 16 deletions
diff --git a/src/devices/cpu/tms32031/tms32031.cpp b/src/devices/cpu/tms32031/tms32031.cpp
index 58cbccdebf5..fe3608d9bba 100644
--- a/src/devices/cpu/tms32031/tms32031.cpp
+++ b/src/devices/cpu/tms32031/tms32031.cpp
@@ -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));
diff --git a/src/devices/cpu/tms32031/tms32031.h b/src/devices/cpu/tms32031/tms32031.h
index acb7f5a3020..4ea4004025d 100644
--- a/src/devices/cpu/tms32031/tms32031.h
+++ b/src/devices/cpu/tms32031/tms32031.h
@@ -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);