diff options
Diffstat (limited to 'src/emu/cpu/sh4/sh4comn.c')
-rw-r--r-- | src/emu/cpu/sh4/sh4comn.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/emu/cpu/sh4/sh4comn.c b/src/emu/cpu/sh4/sh4comn.c index f10d5cd4f1e..0f06c7fe8f0 100644 --- a/src/emu/cpu/sh4/sh4comn.c +++ b/src/emu/cpu/sh4/sh4comn.c @@ -1185,12 +1185,13 @@ void sh4_common_init(const device_config *device) sh4->m = (UINT32 *)auto_malloc(16384*4); } -void sh4_dma_ddt(SH4 *sh4, struct sh4_ddt_dma *s) +void sh4_dma_ddt(const device_config *device, struct sh4_ddt_dma *s) { -UINT32 chcr; -UINT32 *p32bits; -UINT64 *p32bytes; -UINT32 pos,len,siz; + SH4 *sh4 = get_safe_token(device); + UINT32 chcr; + UINT32 *p32bits; + UINT64 *p32bytes; + UINT32 pos,len,siz; if (sh4->dma_timer_active[s->channel]) return; |