notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rework sh2 sync, again..
[picodrive.git]
/
pico
/
sek.c
diff --git
a/pico/sek.c
b/pico/sek.c
index
f42e2d9
..
85bfd28
100644
(file)
--- a/
pico/sek.c
+++ b/
pico/sek.c
@@
-219,7
+219,8
@@
PICO_INTERNAL void SekPackCpu(unsigned char *cpu, int is_sub)
cpu[0x4d] = (context->execinfo & FM68K_HALTED) ? 1 : 0;
\r
#endif
\r
\r
cpu[0x4d] = (context->execinfo & FM68K_HALTED) ? 1 : 0;
\r
#endif
\r
\r
- *(unsigned int *)(cpu+0x40)=pc;
\r
+ *(unsigned int *)(cpu+0x40) = pc;
\r
+ *(unsigned int *)(cpu+0x50) = SekCycleCntT;
\r
}
\r
\r
PICO_INTERNAL void SekUnpackCpu(const unsigned char *cpu, int is_sub)
\r
}
\r
\r
PICO_INTERNAL void SekUnpackCpu(const unsigned char *cpu, int is_sub)
\r
@@
-256,12
+257,13
@@
PICO_INTERNAL void SekUnpackCpu(const unsigned char *cpu, int is_sub)
context->execinfo &= ~FM68K_HALTED;
\r
if (cpu[0x4d]&1) context->execinfo |= FM68K_HALTED;
\r
#endif
\r
context->execinfo &= ~FM68K_HALTED;
\r
if (cpu[0x4d]&1) context->execinfo |= FM68K_HALTED;
\r
#endif
\r
+ SekCycleCntT = *(unsigned int *)(cpu+0x50);
\r
}
\r
\r
\r
/* idle loop detection, not to be used in CD mode */
\r
#ifdef EMU_C68K
\r
}
\r
\r
\r
/* idle loop detection, not to be used in CD mode */
\r
#ifdef EMU_C68K
\r
-#include "cpu/
C
yclone/tools/idle.h"
\r
+#include "cpu/
c
yclone/tools/idle.h"
\r
#endif
\r
\r
static unsigned short **idledet_ptrs = NULL;
\r
#endif
\r
\r
static unsigned short **idledet_ptrs = NULL;
\r