diff options
author | 2010-06-08 17:35:49 +0000 | |
---|---|---|
committer | 2010-06-08 17:35:49 +0000 | |
commit | 5e04468569256d7b9cc1b6069f9c46c90e2455be (patch) | |
tree | 6e00da715aa56ac59d107f6c3f7b8058362da5b0 /src/emu/cpu/adsp2100 | |
parent | d1e9200589119fa135ffd5801dd018ead4865c23 (diff) |
Changed CPU callbacks to use cpu_device, eliminating a bunch of casting.
Diffstat (limited to 'src/emu/cpu/adsp2100')
-rw-r--r-- | src/emu/cpu/adsp2100/adsp2100.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/emu/cpu/adsp2100/adsp2100.c b/src/emu/cpu/adsp2100/adsp2100.c index c1ff81cf89f..f361362e57f 100644 --- a/src/emu/cpu/adsp2100/adsp2100.c +++ b/src/emu/cpu/adsp2100/adsp2100.c @@ -242,7 +242,7 @@ typedef struct UINT8 irq_state[9]; UINT8 irq_latch[9]; device_irq_callback irq_callback; - running_device *device; + cpu_device *device; /* other internal states */ int icount; @@ -563,7 +563,7 @@ static void set_irq_line(adsp2100_state *adsp, int irqline, int state) INITIALIZATION AND SHUTDOWN ***************************************************************************/ -static adsp2100_state *adsp21xx_init(running_device *device, device_irq_callback irqcallback, int chiptype) +static adsp2100_state *adsp21xx_init(cpu_device *device, device_irq_callback irqcallback, int chiptype) { const adsp21xx_config *config = (const adsp21xx_config *)device->baseconfig().static_config(); adsp2100_state *adsp = get_safe_token(device); @@ -578,9 +578,9 @@ static adsp2100_state *adsp21xx_init(running_device *device, device_irq_callback /* fetch device parameters */ adsp->device = device; - adsp->program = device_memory(device)->space(AS_PROGRAM); - adsp->data = device_memory(device)->space(AS_DATA); - adsp->io = device_memory(device)->space(AS_IO); + adsp->program = device->space(AS_PROGRAM); + adsp->data = device->space(AS_DATA); + adsp->io = device->space(AS_IO); /* copy function pointers from the config */ if (config != NULL) @@ -1861,7 +1861,7 @@ static CPU_SET_INFO( adsp21xx ) static CPU_GET_INFO( adsp21xx ) { - adsp2100_state *adsp = (device != NULL && downcast<cpu_device *>(device)->token() != NULL) ? get_safe_token(device) : NULL; + adsp2100_state *adsp = (device != NULL && device->token() != NULL) ? get_safe_token(device) : NULL; switch (state) { /* --- the following bits of info are returned as 64-bit signed integers --- */ |