diff options
author | 2018-07-22 20:41:57 +1000 | |
---|---|---|
committer | 2018-07-22 20:41:57 +1000 | |
commit | c0ab1c5aa4c172aa9e3e0deec5c2cc19d4f278d1 (patch) | |
tree | 359e7b0d6560d05a1872c2e18773a6e2e5038b7f /src/devices/machine/iopdma.cpp | |
parent | 6d39a913e54c73640e4b5e7493b223c87a14c64a (diff) |
(nw) srcclean and some cleanup:
* Make more #include guards follow standard format - using MAME_ as the prefix makes it easy to see which ones come from our code in a preprocessor dump, and having both src/devices/machine/foo.h and src/mame/machine/foo.h causes issues anyway
* Get #include "emu.h" out of headers - it should only be the first thing in a complilation unit or we get differences in behaviour with PCH on/off
* Add out-of-line destructors to some devices - it forces the compiler to instantiate the vtable in a certain location and avoids some non-deterministic compiler behaviours
Diffstat (limited to 'src/devices/machine/iopdma.cpp')
-rw-r--r-- | src/devices/machine/iopdma.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/devices/machine/iopdma.cpp b/src/devices/machine/iopdma.cpp index 883a03eafd0..97b170a0a1a 100644 --- a/src/devices/machine/iopdma.cpp +++ b/src/devices/machine/iopdma.cpp @@ -11,8 +11,10 @@ #include "emu.h" #include "iopdma.h" + #include "cpu/mips/ps2vu.h" + DEFINE_DEVICE_TYPE(SONYIOP_DMA, iop_dma_device, "iopdma", "PlayStation 2 IOP DMAC") iop_dma_device::iop_dma_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) @@ -27,6 +29,10 @@ iop_dma_device::iop_dma_device(const machine_config &mconfig, const char *tag, d { } +iop_dma_device::~iop_dma_device() +{ +} + void iop_dma_device::device_start() { set_icountptr(m_icount); @@ -237,7 +243,7 @@ void iop_dma_device::transfer_spu(uint32_t chan) //if (first_bank) //m_intc->raise_interrupt(iop_intc_device::INT_SPU); - transfer_finish(chan); + transfer_finish(chan); } } |