small fix for lle-int

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6739 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Marko Pusljar 2011-01-04 14:49:54 +00:00
parent 293b5cb4c1
commit 77346cc254
2 changed files with 29 additions and 29 deletions

View File

@ -217,7 +217,7 @@ static int dsp_slice = 0;
static bool dsp_is_lle = false; static bool dsp_is_lle = false;
//time given to lle dsp on every read of the high bits in a mailbox //time given to lle dsp on every read of the high bits in a mailbox
static const int DSP_MAIL_SLICE=12; static const int DSP_MAIL_SLICE=72;
void DoState(PointerWrap &p) void DoState(PointerWrap &p)
{ {

View File

@ -105,32 +105,32 @@ void Step()
} }
// Used by thread mode. // Used by thread mode.
void Run() //void Run()
{ //{
int checkInterrupt = 0; // int checkInterrupt = 0;
gdsp_running = true; // gdsp_running = true;
while (!(g_dsp.cr & CR_HALT) && gdsp_running) // while (!(g_dsp.cr & CR_HALT) && gdsp_running)
{ // {
if (jit) // if (jit)
jit->RunForCycles(1); // jit->RunForCycles(1);
else { // else {
// Automatically let the other threads work if we're idle skipping // // Automatically let the other threads work if we're idle skipping
if(DSPAnalyzer::code_flags[g_dsp.pc] & DSPAnalyzer::CODE_IDLE_SKIP) // if(DSPAnalyzer::code_flags[g_dsp.pc] & DSPAnalyzer::CODE_IDLE_SKIP)
Common::YieldCPU(); // Common::YieldCPU();
//
Step(); // Step();
//
// Turns out the less you check for external interrupts, the more // // Turns out the less you check for external interrupts, the more
// sound you hear, and it becomes slower // // sound you hear, and it becomes slower
checkInterrupt++; // checkInterrupt++;
if(checkInterrupt == 500) { // <-- Arbitrary number. TODO: tweak // if(checkInterrupt == 500) { // <-- Arbitrary number. TODO: tweak
DSPCore_CheckExternalInterrupt(); // DSPCore_CheckExternalInterrupt();
checkInterrupt = 0; // checkInterrupt = 0;
} // }
} // }
} // }
gdsp_running = false; // gdsp_running = false;
} //}
// This one has basic idle skipping, and checks breakpoints. // This one has basic idle skipping, and checks breakpoints.
int RunCyclesDebug(int cycles) int RunCyclesDebug(int cycles)
@ -151,7 +151,7 @@ int RunCyclesDebug(int cycles)
return 0; return 0;
} }
DSPCore_CheckExternalInterrupt(); //DSPCore_CheckExternalInterrupt();
while (true) while (true)
{ {
@ -209,7 +209,7 @@ int RunCycles(int cycles)
return 0; return 0;
} }
DSPCore_CheckExternalInterrupt(); //DSPCore_CheckExternalInterrupt();
while (true) while (true)
{ {