summaryrefslogtreecommitdiff
path: root/Source/Core/DSPCore/Src
AgeCommit message (Collapse)Author
2010-12-03LLE JIT: Implemented some of the DSP multiplier functions in the JIT ↵skidau
compiler. Only the x64 version has been implemented so far. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6511 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-12-03Attempt to fix issue r3458. I don't have a 32bit linux install, however I ↵Shawn Hoffman
know it will at least fix compressing. Please test if uncompressed games run. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6510 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-11-28Fix for linux screensaver inhibit caused by a misinterpretation of the ↵Glenn Rice
window id. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6493 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-11-28Fix the ASM dispatcher to work with linux 64pierre
ESI is not available as callee save register on linux 64, so use R12, which is available on windows 64, too. The only callee save register still available on all platforms is EBP, but i guess we don't want to fiddle with that one. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6492 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-11-28LLE JIT: Speed up the dispatcher by removing the compiled block check. ↵skidau
Initialised the blocks with a stub which calls the compiler. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6490 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-11-28LLE JIT: Speed up the dispatcher by removing one of the cycle checks. This ↵skidau
results in the DSP executing cycles slightly above what it is supposed to. This is not a problem currently but might be later on. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6489 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-11-28LLE JIT: Speed up the idle skip detection by moving the logic into the block ↵skidau
and removing it from the dispatcher. This works because we can detect the idle skip blocks at compile time. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6488 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-11-28LLE JIT: Added an ASM dispatcher. Should help pave the way for future ↵skidau
optimisation. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6486 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-11-27Core/DSPCore: Implement jit emitters for lris and mrr.pierre
Also add the mask for ADPCM predictor, like r6480 does. Tested 64 bit linux/windows. At least compiles for 32 bit windows, but with these binaries most of my guest software fails with DSPLLE(interpreted and jit) when it gets to do actual work. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6484 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-11-15Changed macro for disallowing copy-ctor and =operator into an inheritable ↵Jordan Woyak
class. Removed IrPointer.ini (no longer used) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6421 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-11-07Core/DSPCore: Implement Jit emitters for all extended operations.pierre
May break things, although my testing didn't reveal any regressions. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6357 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-11-07Core/DSPCore: Make Jit read from coefficient ROM when told to do so,pierre
change the unit test to catch this bug if it turns up again and two more zeroWriteBackLog() calls. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6356 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-10-31Core/DSPCore: Extended opcode handling fixespierre
* Make writeToBackLog private to DSPIntExtOps.cpp (JIT variants of 'l and 'ln are disabled and broken as is) * Make zeroing of the backlog conditional on doing an interpreter fallback and do it at a few more places * Fix selection of cleanup for extended opcodes. * Fix the DSP unit tests to correctly emit the function prolog/epilog (else EBX wouldn't be saved) * Add a few more DSP unit tests git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6325 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-10-14Core/DSPCore: Jit: only end emitting the current block when hitting anpierre
unconditional branch(or idle skip), emit check g_dsp.pc and return when hitting a conditional branch. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6281 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-10-14Core/DSPCore: Only check for internal exceptions in ↵pierre
DSPEmitter::checkException, but call it for every instruction, like in DSPInterpreter::Step. Fix the analysis lookups for DSP_IDLE_SKIP and DSP_LOOP_END. After this patch, the block_size and the return value from the block always match, except when an internal exception is detected. This will change in a later patch, so we actually get some benefits from checking if we need to call HandleLoop(). git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6280 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-10-13Core/DSPCore: Initialise all of the code blockspierre
It is pure luck that we did get a fresh (thus zeroed) memory area when not putting DSPLLE on thread. ClearIRAM() is supposed to only clear the non-static part. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6278 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-10-09Core/DSPCore: Make the JIT blocks return the number of cycles executed.pierre
The block_size seems to be not reliable, even after trying to more closely match the interpreter by looking at the analysis for (addr+opcode->size-1) for detecting the end of the block. Since we need to "calculate" this number shortly before returning to RunForCycles, it seemed logical to use the (up to now) unused return value of the blocks. Improves SMG2 here. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6266 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-10-07Core/DSPCore: Fix register use in two (currently) unused functions, correct thepierre
IsSameMemArea check in the rest of the file. Looks like this is simply a copy-paste error, that i dutifully "fixed" for 64 bits. No idea if this fixes anything, but it brings JIT more in line with the interpreter. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6263 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-10-04small HandleLoop() optimization for dsplle-intMarko Pusljar
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6257 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-10-01Core/DSPCore: Make JIT work on 64 bit hostspierre
This is the safe variant that does not assume other functions use R11 for &g_dsp.r, which they actually do. So there is a lot unnecessary reloading of the register getting emitted. There are a few small changes exploiting pointers known at emission time and making use of MComplex math. Also renames m_LLEplaying to m_AIplaying in Core/AudioCommon. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6245 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-09-02hackfix dsp reset: fixes zelda collector's edition and some other games ↵Shawn Hoffman
which reset and hang (...are there any others?) the problem was that the streaming audio interrupts were still being triggered, causing the game to try and jump to an invalid interrupt handler. The code for dsp lle looks like a hack :( (but it works) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6163 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-08-17dsplle - small mulx.. regression fixMarko Pusljar
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6105 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-08-14fixes for my previous commitsMarko Pusljar
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6095 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-08-13Warning fixes and some cleanups.NeoBrainX
Correct me if I was wrong when changing those 0s to '\0's. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6093 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-08-08dsplle - another small fixMarko Pusljar
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6075 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-07-22Port to *BSD. It runs but isn't terribly useful without Cg.Soren Jorvang
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5934 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-07-22Lots more work on making the frame aui stuff functional.Glenn Rice
Also added a DSPCORE_STOP state. The DSP-LLE debugger window segmentation faults if it is openned when a game is not running. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5931 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-07-19Get rid of a number of unnecessary env.Clones.Soren Jorvang
Use SCons' convenient # shorthand for the root of our tree. Also various minor cleanup of SConscripts. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5915 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-06-30Fix a bug in DSP Jit where branches had a blockSize of zero.j4ck.fr0st
Add some useful checking to J_CC/SetJumpTarget. Refactor increment/decrement and reuse code with increase/decrease. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5816 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-06-18DSPLLE: jit increment/decrement_addr_reg to match int (TODO: increase/decrease).j4ck.fr0st
revert the OR back to MOV, since it never happens (according to nakee) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5737 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-06-18DSPLLE: some changes i had lying around, get rid of the shifting and make ↵j4ck.fr0st
popExtValueToReg do the same as its int counterpart applyWriteBackLog (that is, OR'ing the result of both ops, rather than overwriting the main op result with the ext op result) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5735 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-06-10Simplify the SCons build:Soren Jorvang
On OS X, build all code as Objective-C(++). Centralize framework handling. Cleanup. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5645 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-06-08dsplle - cleaningMarko Pusljar
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5636 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-06-03Cleanup.Soren Jorvang
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5593 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-06-03Reapply r5586 and r5587:Soren Jorvang
Have lint mean -Werror at least until the issue with -Warray-bounds and -Wunused-result can be resolved. Avoid producing empty object files: CoreRecording.cpp is not configured through the build system, so just give it a dummy symbol when it's not compiled in. ChunkFile.cpp and DSPBreakpoints.cpp are no longer used. ExtendedTrace.cpp is Windows-only. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5592 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-06-03Warp back to 5578. Sorry for the lost changes, please re-apply. Reason: ↵hrydgard
5579 is a complete disaster. Not only does it change tons of files to switch to a new and non-working (it doesn't parse my ini files, at least) ini parser, it also reshuffles a lot of code and removes a plugin. The latter part is fine, but doing these two major switches in one revision, one of which is broken, is completely unacceptable. I said to merge tiny changes, not massive reworkings. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5589 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-06-03Avoid producing empty object files:Soren Jorvang
CoreRecording.cpp is not configured through the build system, so just give it a dummy symbol when it's not compiled in. ChunkFile.cpp and DSPBreakpoints.cpp are no longer used. ExtendedTrace.cpp is Windows-only. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5587 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-06-02Fix some cases of variables being used uninitialized. Also some unusedSoren Jorvang
variables, writeable strings and dangerously shadowed variables. index(), gamma(), exp() and y0() are POSIX functions and using those names can cause namespace confusion. A number of C files were missing the final newline required by ANSI C and some versions of GCC are pedantic enough to complain about this. These changes simply the scons build, allowing us to get rid of filterWarnings which is simply more trouble than it's worth. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5574 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-29DSPLLE: followup to last change: bugfix + remove extraneous exception checkshrydgard
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5542 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-29Core audio system work (Watch for regressions please!):hrydgard
* Restore Audio Throttle to function properly, broken by Ayuanx many hundreds of revisions back. * Simplify DSPLLE JIT dispatcher in preparation for an asm rewrite * Remove hack that made DSPLLE JIT seem faster than it was by running fewer cycles, but resulting in bad sound. This shows off how mysteriously slow it is - I don't understand why it's not faster. Use the DSPLLE interpreter for now if you want to use DSPLLE. * Made "DSPLLE on Thread" work properly with correct-ish timing - although the speed benefit is really small now. If it seems like this change slows anything non-LLE down, try turning off Audio Throttle and use the frame limiter in options instead. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5541 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-29DSPLLE: Some cleanup. Possibly very small speed increase.hrydgard
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5535 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-26Uninitialized variables.Soren Jorvang
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5501 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-23misc stuffMarko Pusljar
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5468 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-07DSPLLE - AR decrement fixed, +other small fixesMarko Pusljar
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5437 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-04-27DSP jit more worknakeee
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5419 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-04-25DSP Jit annoying shiftsnakeee
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5406 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-04-25DSP Jit more minor fixesnakeee
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5405 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-04-23DSP jit: fixed some crash by pop/push (close to bhaal's solution)nakeee
If it breaks 64bit you know what to uncomment :-) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5400 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-04-22DSP Jit 2 small fixesnakeee
one from bhaal and one from skidau git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5398 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-04-20DSP jit shift fixnakeee
Please tell me if 'mv still crashes git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5392 8ced0084-cf51-0410-be5f-012b33b47a6e