mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
simple profiler added
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@850 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
e05b81fc5b
commit
f6c49d38cb
12 changed files with 258 additions and 8 deletions
|
@ -257,8 +257,11 @@ void NOINLINE ctl_write_z80busreq(u32 d)
|
|||
else
|
||||
{
|
||||
z80stopCycle = SekCyclesDone();
|
||||
if ((PicoOpt&POPT_EN_Z80) && !Pico.m.z80_reset)
|
||||
if ((PicoOpt&POPT_EN_Z80) && !Pico.m.z80_reset) {
|
||||
pprof_start(m68k);
|
||||
PicoSyncZ80(z80stopCycle);
|
||||
pprof_end_sub(m68k);
|
||||
}
|
||||
}
|
||||
Pico.m.z80Run = d;
|
||||
}
|
||||
|
@ -272,8 +275,11 @@ void NOINLINE ctl_write_z80reset(u32 d)
|
|||
{
|
||||
if (d)
|
||||
{
|
||||
if ((PicoOpt&POPT_EN_Z80) && Pico.m.z80Run)
|
||||
if ((PicoOpt&POPT_EN_Z80) && Pico.m.z80Run) {
|
||||
pprof_start(m68k);
|
||||
PicoSyncZ80(SekCyclesDone());
|
||||
pprof_end_sub(m68k);
|
||||
}
|
||||
YM2612ResetChip();
|
||||
timers_reset();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue