From d87ef8f79b70ca8117b8f365d4836ad4448086f7 Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Thu, 11 Dec 2008 09:40:22 +0000 Subject: Here's the big one.... Added new function cpuexec_describe_context(machine) which can be used in logerror() and other printf-style functions to return a description of the current CPU/PC given only the machine. Changed several dozen sites to use this instead of directly interrogating the activecpu. Removed all other uses of activecpu throughout the system. Removed activecpu from the machine structure to prevent future abuse. Removed cpu_push_context() and cpu_pop_context(), and all call sites. Voodoo devices now require a CPU to be defined in the configuration in order to know whom to steal cycles from or stall when FIFOs get full. Updated all voodoo users to specify one. CPD1869 devices now also require a CPU to be defined in the configuration, in order to know which CPU's registers to fetch. Updated all cdp1869 users to specify one. Many other small changes to make this all work. --- src/emu/sound/k053260.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/emu/sound/k053260.c') diff --git a/src/emu/sound/k053260.c b/src/emu/sound/k053260.c index 6ba6437cbe4..e53bd2be625 100644 --- a/src/emu/sound/k053260.c +++ b/src/emu/sound/k053260.c @@ -8,6 +8,7 @@ #include "deprecat.h" #include "streams.h" #include "cpuintrf.h" +#include "cpuexec.h" #include "k053260.h" /* 2004-02-28: Fixed ppcm decoding. Games sound much better now.*/ @@ -399,7 +400,7 @@ static UINT8 k053260_read( int chip, offs_t offset ) ic->channels[0].pos += ( 1 << 16 ); if ( offs > ic->rom_size ) { - logerror("%06x: K53260: Attempting to read past rom size in rom Read Mode (offs = %06x, size = %06x).\n",cpu_get_pc(Machine->activecpu),offs,ic->rom_size ); + logerror("%s: K53260: Attempting to read past rom size in rom Read Mode (offs = %06x, size = %06x).\n", cpuexec_describe_context(Machine),offs,ic->rom_size ); return 0; } -- cgit v1.2.3-70-g09d2