summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author David Haywood <davidhaywood@users.noreply.github.com>2017-10-12 01:22:53 +0100
committer David Haywood <davidhaywood@users.noreply.github.com>2017-10-12 01:22:53 +0100
commit6430bc4f58ebb63f3786ae924238f4e91326c4a9 (patch)
tree9a450334935e34661806f09efccc269f6b4a5c0d
parent0a6f911618d2c7b00fcb842a10f6d40dd67b078e (diff)
fix CPS3/STV (we always use timers for SH2 DMA, and have done for years, just forgot to remove the #ifdef on this code when cleaning up)
-rw-r--r--src/devices/cpu/sh/sh2comn.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/devices/cpu/sh/sh2comn.cpp b/src/devices/cpu/sh/sh2comn.cpp
index f5d66ae7b3d..21b4735a227 100644
--- a/src/devices/cpu/sh/sh2comn.cpp
+++ b/src/devices/cpu/sh/sh2comn.cpp
@@ -181,11 +181,8 @@ void sh2_device::sh2_do_dma(int dma)
}
}
- #ifdef USE_TIMER_FOR_DMA
- //schedule next DMA callback
+ //schedule next DMA callback
m_dma_current_active_timer[dma]->adjust(cycles_to_attotime(2), dma);
- #endif
-
dmadata = m_program->read_byte(tempsrc);
if (!m_dma_kludge_cb.isnull()) dmadata = m_dma_kludge_cb(tempsrc, tempdst, dmadata, m_active_dma_size[dma]);