diff options
author | 2023-08-27 18:58:32 +0900 | |
---|---|---|
committer | 2023-08-27 19:58:32 +1000 | |
commit | 68f8469cf9dc744d1bf7421ffa6073ae818d1608 (patch) | |
tree | 71ec93749a63bdf083f4ea6bb276ea5c23f9f853 /src/devices/cpu/sh/sh2comn.h | |
parent | 7c04746e1a2b39dadc9fa0a179d428015bece045 (diff) |
cpu/sh: Refactored SH-2 refactored code to separate onboard peripherals from CPU core. (#11500)
Diffstat (limited to 'src/devices/cpu/sh/sh2comn.h')
-rw-r--r-- | src/devices/cpu/sh/sh2comn.h | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/src/devices/cpu/sh/sh2comn.h b/src/devices/cpu/sh/sh2comn.h deleted file mode 100644 index 53f5e04d2e6..00000000000 --- a/src/devices/cpu/sh/sh2comn.h +++ /dev/null @@ -1,52 +0,0 @@ -// license:BSD-3-Clause -// copyright-holders:R. Belmont -/***************************************************************************** - * - * sh2common.h - * - * SH-2 non-specific components - * - *****************************************************************************/ - -#ifndef MAME_CPU_SH2_SH2COMN_H -#define MAME_CPU_SH2_SH2COMN_H - -#pragma once - -enum -{ - ICF = 0x80, - OCFA = 0x08, - OCFB = 0x04, - OVF = 0x02, - CCLRA = 0x01 -}; - -#define SH12_AM 0xc7ffffff - -#define CHECK_PENDING_IRQ(message) \ -do { \ - int irq = -1; \ - if (m_sh2_state->pending_irq & (1 << 0)) irq = 0; \ - if (m_sh2_state->pending_irq & (1 << 1)) irq = 1; \ - if (m_sh2_state->pending_irq & (1 << 2)) irq = 2; \ - if (m_sh2_state->pending_irq & (1 << 3)) irq = 3; \ - if (m_sh2_state->pending_irq & (1 << 4)) irq = 4; \ - if (m_sh2_state->pending_irq & (1 << 5)) irq = 5; \ - if (m_sh2_state->pending_irq & (1 << 6)) irq = 6; \ - if (m_sh2_state->pending_irq & (1 << 7)) irq = 7; \ - if (m_sh2_state->pending_irq & (1 << 8)) irq = 8; \ - if (m_sh2_state->pending_irq & (1 << 9)) irq = 9; \ - if (m_sh2_state->pending_irq & (1 << 10)) irq = 10; \ - if (m_sh2_state->pending_irq & (1 << 11)) irq = 11; \ - if (m_sh2_state->pending_irq & (1 << 12)) irq = 12; \ - if (m_sh2_state->pending_irq & (1 << 13)) irq = 13; \ - if (m_sh2_state->pending_irq & (1 << 14)) irq = 14; \ - if (m_sh2_state->pending_irq & (1 << 15)) irq = 15; \ - if ((m_sh2_state->internal_irq_level != -1) && (m_sh2_state->internal_irq_level > irq)) irq = m_sh2_state->internal_irq_level; \ - if (irq >= 0) \ - sh2_exception(message,irq); \ -} while(0) - - -#endif // MAME_CPU_SH2_SH2COMN_H |