summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2011-06-02 21:44:11 +0000
committer smf- <smf-@users.noreply.github.com>2011-06-02 21:44:11 +0000
commit964a0e792416a10d6c3d65a864e567bb39422d3f (patch)
tree3e0d28de8a74b445ab2f5c39474bee872cb36a7c /src
parentf1dea9133361a919d943100b71c3c4d22c778de9 (diff)
fixed replacing the gpu for coh110 based games
Diffstat (limited to 'src')
-rw-r--r--src/emu/video/psx.h5
-rw-r--r--src/mame/drivers/namcos11.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/emu/video/psx.h b/src/emu/video/psx.h
index 383bcbedf25..87309daeab7 100644
--- a/src/emu/video/psx.h
+++ b/src/emu/video/psx.h
@@ -17,6 +17,11 @@
MCFG_PSX_DMA_CHANNEL_READ( cputag, 2, psx_dma_write_delegate( FUNC( psxgpu_device::dma_read ), (psxgpu_device *) device ) ) \
MCFG_PSX_DMA_CHANNEL_WRITE( cputag, 2, psx_dma_read_delegate( FUNC( psxgpu_device::dma_write ), (psxgpu_device *) device ) )
+#define MCFG_PSXGPU_REPLACE( cputag, tag, type, clock ) \
+ MCFG_DEVICE_REPLACE( tag, type, clock ) \
+ MCFG_PSX_DMA_CHANNEL_READ( cputag, 2, psx_dma_write_delegate( FUNC( psxgpu_device::dma_read ), (psxgpu_device *) device ) ) \
+ MCFG_PSX_DMA_CHANNEL_WRITE( cputag, 2, psx_dma_read_delegate( FUNC( psxgpu_device::dma_write ), (psxgpu_device *) device ) )
+
extern const device_type CXD8514Q;
extern const device_type CXD8538Q;
extern const device_type CXD8561Q;
diff --git a/src/mame/drivers/namcos11.c b/src/mame/drivers/namcos11.c
index 2e22fdad940..0d999de00d6 100644
--- a/src/mame/drivers/namcos11.c
+++ b/src/mame/drivers/namcos11.c
@@ -1023,7 +1023,7 @@ static MACHINE_CONFIG_DERIVED( coh110, coh100 )
MCFG_CPU_PROGRAM_MAP( namcos11_map )
MCFG_CPU_VBLANK_INT("screen", namcos11_vblank)
- MCFG_DEVICE_REPLACE( "gpu", CXD8561Q, 0 )
+ MCFG_PSXGPU_REPLACE( "maincpu", "gpu", CXD8561Q, 0 )
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_REFRESH_RATE( 30 )