summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/powerpc/drc_ops.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-11-06 18:42:37 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-11-06 18:42:37 +0000
commitb44da3b748d0ef6fa95e1c39f556e5e3cff5169b (patch)
tree2a7acc4cfab418620bfc99ec6f460f32475bb934 /src/emu/cpu/powerpc/drc_ops.c
parent1228d0ad9ea3fa2fb7a3b88357ba286247fc8826 (diff)
WARNING: This is a significant change. If you are risk-averse and
working on something, hold off syncing. Defined macros for core CPU functions: CPU_INIT, CPU_RESET, CPU_EXIT, CPU_EXECUTE, along with macros for the name and for calling, in the spirit of the devintrf.h macros. More will come later. Changed init, reset, exit, and execute interfaces to be passed a const device_config * object. This is a fake object for the moment, but encapsulates the machine pointer and token. Eventually this will be a real device. Changed the CPU IRQ callbacks to a proper type, and added a device parameter to them. Updated all CPU cores to the new macros and parameters. Note that this changes the way we "pointer"-ify cores. I'll send an update shortly.
Diffstat (limited to 'src/emu/cpu/powerpc/drc_ops.c')
-rw-r--r--src/emu/cpu/powerpc/drc_ops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/cpu/powerpc/drc_ops.c b/src/emu/cpu/powerpc/drc_ops.c
index 0458bd57b75..481bfde74b6 100644
--- a/src/emu/cpu/powerpc/drc_ops.c
+++ b/src/emu/cpu/powerpc/drc_ops.c
@@ -51,7 +51,7 @@ static void ppcdrc_init(void)
drconfig.pcptr = (UINT32 *)&ppc.pc;
drconfig.icountptr = (UINT32 *)&ppc_icount;
drconfig.esiptr = NULL;
- drconfig.cb_reset = ppcdrc_reset;
+ drconfig.cb_reset = CPU_RESET_NAME(ppcdrc);
drconfig.cb_recompile = ppcdrc_recompile;
drconfig.cb_entrygen = ppcdrc_entrygen;
@@ -110,7 +110,7 @@ static void ppcdrc_reset(drc_core *drc)
}
}
-static void ppcdrc_exit(void)
+static CPU_EXIT( ppcdrc )
{
drc_exit(ppc.drc);
}