summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/dsp56k/dsp56mem.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2009-03-15 17:12:40 +0000
committer Aaron Giles <aaron@aarongiles.com>2009-03-15 17:12:40 +0000
commit46494694d15ba7ced83782fb385ee1474d8b882a (patch)
tree590cad40562178523ff8b41986b3ee9f69be3663 /src/emu/cpu/dsp56k/dsp56mem.c
parentd0527ba566044a695b2da07d108c892d0949159a (diff)
CPU cores now compile cleanly.
Diffstat (limited to 'src/emu/cpu/dsp56k/dsp56mem.c')
-rw-r--r--src/emu/cpu/dsp56k/dsp56mem.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/cpu/dsp56k/dsp56mem.c b/src/emu/cpu/dsp56k/dsp56mem.c
index b3375aaaf06..fac1b2f89ed 100644
--- a/src/emu/cpu/dsp56k/dsp56mem.c
+++ b/src/emu/cpu/dsp56k/dsp56mem.c
@@ -612,7 +612,7 @@ static void dsp56k_host_interface_reset(dsp56k_core* cpustate)
/* They represent the host side of the dsp56k's host interface */
void dsp56k_host_interface_write(device_config* device, UINT8 offset, UINT8 data)
{
- dsp56k_core* cpustate = device->token;
+ dsp56k_core* cpustate = get_safe_token(device);
/* Not exactly correct since the bootstrap hack doesn't need this to be true */
/*
@@ -708,7 +708,7 @@ void dsp56k_host_interface_write(device_config* device, UINT8 offset, UINT8 data
UINT8 dsp56k_host_interface_read(device_config* device, UINT8 offset)
{
- dsp56k_core* cpustate = device->token;
+ dsp56k_core* cpustate = get_safe_token(device);
/* Not exactly correct since the bootstrap hack doesn't need this to be true */
/*
@@ -936,6 +936,6 @@ static void dsp56k_io_reset(dsp56k_core* cpustate)
/* MISC*/
UINT16 dsp56k_get_peripheral_memory(device_config* device, UINT16 addr)
{
- // TODO // THIS COMES BACK dsp56k_core* cpustate = device->token;
+ // TODO // THIS COMES BACK dsp56k_core* cpustate = get_safe_token(device);
return dsp56k_peripheral_ram[A2O(addr)];
}