X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2FdebugCPU.c;h=128f4144385281b999a0c21cedf3a4ab8f89e7fb;hb=fda2f31020bf0d6cf7b5dd70ec01cf390b7e1483;hp=77ca4207b270efc9c761b5c550f0cd8d131a456b;hpb=1cfc5cc4ce06642b9bc45ca3b9d32793718e9455;p=picodrive.git diff --git a/pico/debugCPU.c b/pico/debugCPU.c index 77ca420..128f414 100644 --- a/pico/debugCPU.c +++ b/pico/debugCPU.c @@ -1,3 +1,11 @@ +/* + * debug stuff + * (C) notaz, 2006-2008 + * + * This work is licensed under the terms of MAME license. + * See COPYING file in the top-level directory. + */ + #include "pico_int.h" typedef unsigned char u8; @@ -22,6 +30,7 @@ static struct Cyclone *currentC68k = NULL; #define other_is_stopped() (currentC68k->state_flags&1) #define other_is_tracing() ((currentC68k->state_flags&2)?1:0) #elif defined(EMU_F68K) +static struct M68K_CONTEXT *g_m68kcontext; #define other_set_sub(s) g_m68kcontext=(s)?&PicoCpuFS68k:&PicoCpuFM68k; #define other_get_sr() g_m68kcontext->sr #define other_dar(i) ((unsigned int*)g_m68kcontext->dreg)[i] @@ -41,7 +50,7 @@ static int otherRun(void) CycloneRun(currentC68k); return 1-currentC68k->cycles; #elif defined(EMU_F68K) - return fm68k_emulate(1, 0); + return fm68k_emulate(g_m68kcontext, 1, 0); #endif }