diff options
| author | Marko Pusljar <LM1234@gmail.com> | 2011-01-04 14:49:54 +0000 |
|---|---|---|
| committer | Marko Pusljar <LM1234@gmail.com> | 2011-01-04 14:49:54 +0000 |
| commit | 77346cc254484c12115abc89d9950930c75a775e (patch) | |
| tree | 8b4e19117e5d87b16b627a4a4bcaa2614bd714e6 /Source/Core/DSPCore | |
| parent | 293b5cb4c16b9da1c1d72b65ebf0e4fc23b3be84 (diff) | |
small fix for lle-int
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6739 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DSPCore')
| -rw-r--r-- | Source/Core/DSPCore/Src/DSPInterpreter.cpp | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/Source/Core/DSPCore/Src/DSPInterpreter.cpp b/Source/Core/DSPCore/Src/DSPInterpreter.cpp index ee67ce0989..d8f96ec880 100644 --- a/Source/Core/DSPCore/Src/DSPInterpreter.cpp +++ b/Source/Core/DSPCore/Src/DSPInterpreter.cpp @@ -105,32 +105,32 @@ void Step() } // Used by thread mode. -void Run() -{ - int checkInterrupt = 0; - gdsp_running = true; - while (!(g_dsp.cr & CR_HALT) && gdsp_running) - { - if (jit) - jit->RunForCycles(1); - else { - // Automatically let the other threads work if we're idle skipping - if(DSPAnalyzer::code_flags[g_dsp.pc] & DSPAnalyzer::CODE_IDLE_SKIP) - Common::YieldCPU(); - - Step(); - - // Turns out the less you check for external interrupts, the more - // sound you hear, and it becomes slower - checkInterrupt++; - if(checkInterrupt == 500) { // <-- Arbitrary number. TODO: tweak - DSPCore_CheckExternalInterrupt(); - checkInterrupt = 0; - } - } - } - gdsp_running = false; -} +//void Run() +//{ +// int checkInterrupt = 0; +// gdsp_running = true; +// while (!(g_dsp.cr & CR_HALT) && gdsp_running) +// { +// if (jit) +// jit->RunForCycles(1); +// else { +// // Automatically let the other threads work if we're idle skipping +// if(DSPAnalyzer::code_flags[g_dsp.pc] & DSPAnalyzer::CODE_IDLE_SKIP) +// Common::YieldCPU(); +// +// Step(); +// +// // Turns out the less you check for external interrupts, the more +// // sound you hear, and it becomes slower +// checkInterrupt++; +// if(checkInterrupt == 500) { // <-- Arbitrary number. TODO: tweak +// DSPCore_CheckExternalInterrupt(); +// checkInterrupt = 0; +// } +// } +// } +// gdsp_running = false; +//} // This one has basic idle skipping, and checks breakpoints. int RunCyclesDebug(int cycles) @@ -151,7 +151,7 @@ int RunCyclesDebug(int cycles) return 0; } - DSPCore_CheckExternalInterrupt(); + //DSPCore_CheckExternalInterrupt(); while (true) { @@ -209,7 +209,7 @@ int RunCycles(int cycles) return 0; } - DSPCore_CheckExternalInterrupt(); + //DSPCore_CheckExternalInterrupt(); while (true) { |
