summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/pic16c62x/pic16c62x.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/cpu/pic16c62x/pic16c62x.c')
-rw-r--r--src/emu/cpu/pic16c62x/pic16c62x.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/emu/cpu/pic16c62x/pic16c62x.c b/src/emu/cpu/pic16c62x/pic16c62x.c
index 98c97b162ed..ca92a055e85 100644
--- a/src/emu/cpu/pic16c62x/pic16c62x.c
+++ b/src/emu/cpu/pic16c62x/pic16c62x.c
@@ -87,7 +87,7 @@ struct _pic16c62x_state
int inst_cycles;
- running_device *device;
+ cpu_device *device;
const address_space *program;
const address_space *data;
const address_space *io;
@@ -837,9 +837,9 @@ static CPU_INIT( pic16c62x )
pic16c62x_state *cpustate = get_safe_token(device);
cpustate->device = device;
- cpustate->program = device_memory(device)->space(AS_PROGRAM);
- cpustate->data = device_memory(device)->space(AS_DATA);
- cpustate->io = device_memory(device)->space(AS_IO);
+ cpustate->program = device->space(AS_PROGRAM);
+ cpustate->data = device->space(AS_DATA);
+ cpustate->io = device->space(AS_IO);
cpustate->CONFIG = 0x3fff;
@@ -1114,7 +1114,7 @@ static CPU_SET_INFO( pic16c62x )
static CPU_GET_INFO( pic16c62x )
{
- pic16c62x_state *cpustate = (device != NULL && downcast<cpu_device *>(device)->token() != NULL) ? get_safe_token(device) : NULL;
+ pic16c62x_state *cpustate = (device != NULL && device->token() != NULL) ? get_safe_token(device) : NULL;
switch (state)
{