diff options
author | smf- <smf-@users.noreply.github.com> | 2022-09-15 13:38:44 +0100 |
---|---|---|
committer | smf- <smf-@users.noreply.github.com> | 2022-09-15 13:39:13 +0100 |
commit | bdb9404c08908249210be53ddd640c165e6df1ed (patch) | |
tree | e8851389faac488b937c9e3008a1b381777730c5 /src/devices/machine | |
parent | 8a5a7f7ccdd90ece71f8fe6e61391ccd4092f68b (diff) |
fixes for clang 15.0 on windows [smf]
Diffstat (limited to 'src/devices/machine')
-rw-r--r-- | src/devices/machine/s3c24xx.hxx | 6 | ||||
-rw-r--r-- | src/devices/machine/s3c44b0.cpp | 17 |
2 files changed, 1 insertions, 22 deletions
diff --git a/src/devices/machine/s3c24xx.hxx b/src/devices/machine/s3c24xx.hxx index b5ad9be6312..08582806efb 100644 --- a/src/devices/machine/s3c24xx.hxx +++ b/src/devices/machine/s3c24xx.hxx @@ -1155,12 +1155,6 @@ void S3C24_CLASS_NAME::s3c24xx_check_pending_irq() temp = (m_irq.regs.srcpnd & ~m_irq.regs.intmsk) & m_irq.regs.intmod; if (temp != 0) { - uint32_t int_type = 0; - while ((temp & 1) == 0) - { - int_type++; - temp = temp >> 1; - } if (m_irq.line_fiq != ASSERT_LINE) { LOGMASKED(LOG_IRQS, "asserting FIQ line\n"); diff --git a/src/devices/machine/s3c44b0.cpp b/src/devices/machine/s3c44b0.cpp index f3ea869bdd5..2f114f2a80c 100644 --- a/src/devices/machine/s3c44b0.cpp +++ b/src/devices/machine/s3c44b0.cpp @@ -914,12 +914,6 @@ void s3c44b0_device::check_pending_irq() temp = (m_irq.regs.intpnd & ~m_irq.regs.intmsk) & m_irq.regs.intmod; if (temp != 0) { - uint32_t int_type = 0; - while ((temp & 1) == 0) - { - int_type++; - temp = temp >> 1; - } if (m_irq.line_fiq != ASSERT_LINE) { m_cpu->set_input_line(ARM7_FIRQ_LINE, ASSERT_LINE); @@ -945,17 +939,8 @@ void s3c44b0_device::request_irq(uint32_t int_type) void s3c44b0_device::check_pending_eint() { - uint32_t temp = m_gpio.regs.extintpnd; - if (temp != 0) - { - uint32_t int_type = 0; - while ((temp & 1) == 0) - { - int_type++; - temp = temp >> 1; - } + if (m_gpio.regs.extintpnd != 0) request_irq(S3C44B0_INT_EINT4_7); - } } void s3c44b0_device::request_eint(uint32_t number) |