diff options
| author | 2024-05-26 07:39:22 +1000 | |
|---|---|---|
| committer | 2024-05-26 07:39:22 +1000 | |
| commit | 7e52678a2c89d9b66e52335d639a621b675fa61c (patch) | |
| tree | 227200556e9096aba0fe7e20f8f527ea82e50199 /src/devices/cpu/sh | |
| parent | d2d85d3951942d2c3d0b0c14f7d1db3d256b3a54 (diff) | |
srcclean and cleanup
Diffstat (limited to 'src/devices/cpu/sh')
| -rw-r--r-- | src/devices/cpu/sh/sh7042.cpp | 80 | ||||
| -rw-r--r-- | src/devices/cpu/sh/sh_cmt.cpp | 2 | ||||
| -rw-r--r-- | src/devices/cpu/sh/sh_intc.cpp | 2 |
3 files changed, 42 insertions, 42 deletions
diff --git a/src/devices/cpu/sh/sh7042.cpp b/src/devices/cpu/sh/sh7042.cpp index e257cedb2b9..9fef06c64ad 100644 --- a/src/devices/cpu/sh/sh7042.cpp +++ b/src/devices/cpu/sh/sh7042.cpp @@ -301,50 +301,50 @@ void sh7042_device::device_add_mconfig(machine_config &config) SH_DMAC_CHANNEL(config, m_dmac3, *this, m_intc); SH_MTU(config, m_mtu, *this, 5); SH_MTU_CHANNEL(config, m_mtu0, *this, 4, 0x60, m_intc, 88, - sh_mtu_channel_device::DIV_1, - sh_mtu_channel_device::DIV_4, - sh_mtu_channel_device::DIV_16, - sh_mtu_channel_device::DIV_64, - sh_mtu_channel_device::INPUT_A, - sh_mtu_channel_device::INPUT_B, - sh_mtu_channel_device::INPUT_C, - sh_mtu_channel_device::INPUT_D); + sh_mtu_channel_device::DIV_1, + sh_mtu_channel_device::DIV_4, + sh_mtu_channel_device::DIV_16, + sh_mtu_channel_device::DIV_64, + sh_mtu_channel_device::INPUT_A, + sh_mtu_channel_device::INPUT_B, + sh_mtu_channel_device::INPUT_C, + sh_mtu_channel_device::INPUT_D); SH_MTU_CHANNEL(config, m_mtu1, *this, 2, 0x4c, m_intc, 96, - sh_mtu_channel_device::DIV_1, - sh_mtu_channel_device::DIV_4, - sh_mtu_channel_device::DIV_16, - sh_mtu_channel_device::DIV_64, - sh_mtu_channel_device::INPUT_A, - sh_mtu_channel_device::INPUT_B, - sh_mtu_channel_device::DIV_256, - sh_mtu_channel_device::CHAIN).set_chain(m_mtu2); + sh_mtu_channel_device::DIV_1, + sh_mtu_channel_device::DIV_4, + sh_mtu_channel_device::DIV_16, + sh_mtu_channel_device::DIV_64, + sh_mtu_channel_device::INPUT_A, + sh_mtu_channel_device::INPUT_B, + sh_mtu_channel_device::DIV_256, + sh_mtu_channel_device::CHAIN).set_chain(m_mtu2); SH_MTU_CHANNEL(config, m_mtu2, *this, 2, 0x4c, m_intc, 104, - sh_mtu_channel_device::DIV_1, - sh_mtu_channel_device::DIV_4, - sh_mtu_channel_device::DIV_16, - sh_mtu_channel_device::DIV_64, - sh_mtu_channel_device::INPUT_A, - sh_mtu_channel_device::INPUT_B, - sh_mtu_channel_device::INPUT_C, - sh_mtu_channel_device::DIV_1024); + sh_mtu_channel_device::DIV_1, + sh_mtu_channel_device::DIV_4, + sh_mtu_channel_device::DIV_16, + sh_mtu_channel_device::DIV_64, + sh_mtu_channel_device::INPUT_A, + sh_mtu_channel_device::INPUT_B, + sh_mtu_channel_device::INPUT_C, + sh_mtu_channel_device::DIV_1024); SH_MTU_CHANNEL(config, m_mtu3, *this, 4, 0x60, m_intc, 112, - sh_mtu_channel_device::DIV_1, - sh_mtu_channel_device::DIV_4, - sh_mtu_channel_device::DIV_16, - sh_mtu_channel_device::DIV_64, - sh_mtu_channel_device::DIV_256, - sh_mtu_channel_device::DIV_1024, - sh_mtu_channel_device::INPUT_A, - sh_mtu_channel_device::INPUT_B); + sh_mtu_channel_device::DIV_1, + sh_mtu_channel_device::DIV_4, + sh_mtu_channel_device::DIV_16, + sh_mtu_channel_device::DIV_64, + sh_mtu_channel_device::DIV_256, + sh_mtu_channel_device::DIV_1024, + sh_mtu_channel_device::INPUT_A, + sh_mtu_channel_device::INPUT_B); SH_MTU_CHANNEL(config, m_mtu4, *this, 4, 0x60, m_intc, 120, - sh_mtu_channel_device::DIV_1, - sh_mtu_channel_device::DIV_4, - sh_mtu_channel_device::DIV_16, - sh_mtu_channel_device::DIV_64, - sh_mtu_channel_device::DIV_256, - sh_mtu_channel_device::DIV_1024, - sh_mtu_channel_device::INPUT_A, - sh_mtu_channel_device::INPUT_B); + sh_mtu_channel_device::DIV_1, + sh_mtu_channel_device::DIV_4, + sh_mtu_channel_device::DIV_16, + sh_mtu_channel_device::DIV_64, + sh_mtu_channel_device::DIV_256, + sh_mtu_channel_device::DIV_1024, + sh_mtu_channel_device::INPUT_A, + sh_mtu_channel_device::INPUT_B); SH_PORT32(config, m_porta, *this, 0, 0x00000000, 0xff000000); SH_PORT16(config, m_portb, *this, 0, 0x0000, 0xfc00); SH_PORT16(config, m_portc, *this, 1, 0x0000, 0x0000); diff --git a/src/devices/cpu/sh/sh_cmt.cpp b/src/devices/cpu/sh/sh_cmt.cpp index 685fbc461d6..74b7299a53b 100644 --- a/src/devices/cpu/sh/sh_cmt.cpp +++ b/src/devices/cpu/sh/sh_cmt.cpp @@ -171,7 +171,7 @@ void sh_cmt_device::cor_w(int reg, u16 data, u16 mem_mask) void sh_cmt_device::clock_start(int clk) { - // logerror("start clock %d %dHz\n", clk, (m_cpu->clock() >> (3 + 2*BIT(m_csr[clk], 0, 2))) / (m_cor[clk] + 1)); + //logerror("start clock %d %dHz\n", clk, (m_cpu->clock() >> (3 + 2*BIT(m_csr[clk], 0, 2))) / (m_cor[clk] + 1)); compute_next_event(clk); } diff --git a/src/devices/cpu/sh/sh_intc.cpp b/src/devices/cpu/sh/sh_intc.cpp index bf08a6a5081..989cc8d62a1 100644 --- a/src/devices/cpu/sh/sh_intc.cpp +++ b/src/devices/cpu/sh/sh_intc.cpp @@ -64,7 +64,7 @@ void sh_intc_device::interrupt_taken(int irqline, int vector) // Don't clear an external interrupt which is level and still active if(vector < 64 || vector >= 72 || BIT(m_icr, 7-(vector & 7)) || !BIT(m_lines, vector & 7)) m_pending[vector >> 5] &= ~(1 << (vector & 31)); - + update_irq(); } |
