diff options
author | 2010-07-03 00:12:44 +0000 | |
---|---|---|
committer | 2010-07-03 00:12:44 +0000 | |
commit | c70c5fee5a6094c5a1fbd6b25568e57b1d3a8216 (patch) | |
tree | eb0db95e2757f00a708dd4bfbf3ed4af41d943b6 /src/emu/cpu/adsp2100/adsp2100.h | |
parent | 46e30c4f68c5c92b597d6b3ae9e9037d5e04efe9 (diff) |
Created CPU-specific device types for all CPUs, using new macros
DECLARE_LEGACY_CPU_DEVICE and DEFINE_LEGACY_CPU_DEVICE. Changed CPUs
to be their own device types, rather than all of type CPU with a
special internal subtype. Note that as part of this process I removed
the CPU_ prefix from the ALL-CAPS device name, so CPU_Z80 is just
plain old Z80 now. This required changing a couple of names like
8080 to I8080 so that there was an alphabetic first character.
Added memory interfaces to the list of fast-access interfaces. To do
this properly I had to add a separate method to devices which is
called immediately after construction, when it is possible to perform
dynamic_casts on fully-constructed objects. (This is just internal,
no changes necessary to the devices themselves.)
Some additional notes:
* SH2 and SH4 had typedefs that conflicted with their CPU_-less names
so I bulk renamed to structures to sh2_state and sh4_state; RB, feel
free to choose alternate names if you don't like 'em
* SCSP was caught doing something to the 3rd indexed CPU. Since several
systems that use SCSP don't even have 3 CPUs, I had no idea what
this was supposed to do, so I changed to it reference "audiocpu"
assuming that stv was the assumed target. This is really gross and
should be a configuration parameter, not a hard-coded assumption.
Diffstat (limited to 'src/emu/cpu/adsp2100/adsp2100.h')
-rw-r--r-- | src/emu/cpu/adsp2100/adsp2100.h | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/src/emu/cpu/adsp2100/adsp2100.h b/src/emu/cpu/adsp2100/adsp2100.h index f78fd2ca62b..8da1d82cd3b 100644 --- a/src/emu/cpu/adsp2100/adsp2100.h +++ b/src/emu/cpu/adsp2100/adsp2100.h @@ -16,6 +16,13 @@ TYPE DEFINITIONS ***************************************************************************/ +DECLARE_LEGACY_CPU_DEVICE(ADSP2100, adsp2100); +DECLARE_LEGACY_CPU_DEVICE(ADSP2101, adsp2101); +DECLARE_LEGACY_CPU_DEVICE(ADSP2104, adsp2104); +DECLARE_LEGACY_CPU_DEVICE(ADSP2105, adsp2105); +DECLARE_LEGACY_CPU_DEVICE(ADSP2115, adsp2115); +DECLARE_LEGACY_CPU_DEVICE(ADSP2181, adsp2181); + /* transmit and receive data callbacks types */ typedef INT32 (*adsp21xx_rx_func)(cpu_device &device, int port); typedef void (*adsp21xx_tx_func)(cpu_device &device, int port, INT32 data); @@ -69,9 +76,6 @@ enum #define ADSP2100_IRQ2 2 /* IRQ2 */ #define ADSP2100_IRQ3 3 /* IRQ3 */ -CPU_GET_INFO( adsp2100 ); -#define CPU_ADSP2100 CPU_GET_INFO_NAME( adsp2100 ) - /************************************************************************** * ADSP2101 section @@ -86,9 +90,6 @@ CPU_GET_INFO( adsp2100 ); #define ADSP2101_SPORT0_TX 4 /* SPORT0 transmit IRQ */ #define ADSP2101_TIMER 5 /* internal timer IRQ */ -CPU_GET_INFO( adsp2101 ); -#define CPU_ADSP2101 CPU_GET_INFO_NAME( adsp2101 ) - /************************************************************************** * ADSP2104 section @@ -103,9 +104,6 @@ CPU_GET_INFO( adsp2101 ); #define ADSP2104_SPORT0_TX 4 /* SPORT0 transmit IRQ */ #define ADSP2104_TIMER 5 /* internal timer IRQ */ -CPU_GET_INFO( adsp2104 ); -#define CPU_ADSP2104 CPU_GET_INFO_NAME( adsp2104 ) - void adsp2104_load_boot_data(UINT8 *srcdata, UINT32 *dstdata); @@ -120,9 +118,6 @@ void adsp2104_load_boot_data(UINT8 *srcdata, UINT32 *dstdata); #define ADSP2105_IRQ2 2 /* IRQ2 */ #define ADSP2105_TIMER 5 /* internal timer IRQ */ -CPU_GET_INFO( adsp2105 ); -#define CPU_ADSP2105 CPU_GET_INFO_NAME( adsp2105 ) - void adsp2105_load_boot_data(UINT8 *srcdata, UINT32 *dstdata); @@ -139,9 +134,6 @@ void adsp2105_load_boot_data(UINT8 *srcdata, UINT32 *dstdata); #define ADSP2115_SPORT0_TX 4 /* SPORT0 transmit IRQ */ #define ADSP2115_TIMER 5 /* internal timer IRQ */ -CPU_GET_INFO( adsp2115 ); -#define CPU_ADSP2115 CPU_GET_INFO_NAME( adsp2115 ) - void adsp2115_load_boot_data(UINT8 *srcdata, UINT32 *dstdata); @@ -161,9 +153,6 @@ void adsp2115_load_boot_data(UINT8 *srcdata, UINT32 *dstdata); #define ADSP2181_IRQL1 7 /* IRQL1 */ #define ADSP2181_IRQL2 8 /* IRQL2 */ -CPU_GET_INFO( adsp2181 ); -#define CPU_ADSP2181 CPU_GET_INFO_NAME( adsp2181 ) - void adsp2181_load_boot_data(UINT8 *srcdata, UINT32 *dstdata); void adsp2181_idma_addr_w(running_device *device, UINT16 data); UINT16 adsp2181_idma_addr_r(running_device *device); |