mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-30 13:58:03 +03:00
DSPLLE: comments and logging clean up
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3693 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
45771c8614
commit
c44dabfe8b
5 changed files with 73 additions and 81 deletions
|
@ -80,6 +80,7 @@ void HandleLoop()
|
|||
const u16 rCallAddress = g_dsp.r[DSP_REG_ST0];
|
||||
const u16 rLoopAddress = g_dsp.r[DSP_REG_ST2];
|
||||
|
||||
|
||||
if (g_dsp.pc == (rLoopAddress + opSize[rLoopAddress]))
|
||||
{
|
||||
rLoopCounter--;
|
||||
|
@ -148,7 +149,8 @@ void Run()
|
|||
// This one has basic idle skipping, and checks breakpoints.
|
||||
int RunCyclesDebug(int cycles)
|
||||
{
|
||||
// First, let's run a few cycles with no idle skipping so that things can progress a bit.
|
||||
// First, let's run a few cycles with no idle skipping so that things can
|
||||
// progress a bit.
|
||||
for (int i = 0; i < 8; i++)
|
||||
{
|
||||
if (g_dsp.cr & CR_HALT)
|
||||
|
@ -231,7 +233,8 @@ int RunCycles(int cycles)
|
|||
cycles--;
|
||||
}
|
||||
|
||||
// Next, let's run a few cycles with idle skipping, so that we can skip idle loops.
|
||||
// Next, let's run a few cycles with idle skipping, so that we can skip
|
||||
// idle loops.
|
||||
for (int i = 0; i < 8; i++)
|
||||
{
|
||||
if (g_dsp.cr & CR_HALT)
|
||||
|
@ -242,8 +245,9 @@ int RunCycles(int cycles)
|
|||
cycles--;
|
||||
}
|
||||
|
||||
// Now, run the rest of the block without idle skipping. It might trip into a
|
||||
// idle loop and if so we waste some time here. Might be beneficial to slice even further.
|
||||
// Now, run the rest of the block without idle skipping. It might trip into
|
||||
// a idle loop and if so we waste some time here. Might be beneficial to
|
||||
// slice even further.
|
||||
while (cycles > 0)
|
||||
{
|
||||
Step();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue