Cap imm branch instructions, reset compiling.

Break and other delay slot ops could've set it to false.

It's actually sometimes faster now.
Make sure there's enough space while compiling.
Fix hang in Project Diva 2nd in single-threaded mode. Doesn't seem to affect other games, but I don't have every game in existence, so there could be one or two out there that might break from this.
Improve typesafety in the x86 regalloc.
Add ThreadManForKernel and ModuleForKernel

Sample log:https://gist.github.com/sum2012/3bb5deb1a806ef18f5f3
Mipmapping only enable when texture scaling disabled
ThreadManForKernel_ceadeb47 should equal to sceKernelDelayThread
Attempt to use scissor to render correct shadowing in Mortal Kombat/FF CC
Merge pull request #3375 from thedax/master

Fix hang in Project Diva 2nd in single-threaded mode.
Merge pull request #3381 from raven02/patch-18

Mipmapping only enable when texture scaling disabled
Merge pull request #3378 from sum2012/patch5

Add ThreadManForKernel and ModuleForKernel
Merge pull request #3373 from unknownbrackets/mips-minor

Cap imm branch instructions, reset compiling
Merge pull request #3357 from raven02/patch-15

Regession fix character shadow stretch in FF Crisis core
Fix division by zero in low latency audio mode
More alpha hackery. This is starting to get embarrassing, really need to fix those tests.
Revert "More alpha hackery. This is starting to get embarrassing, really need to fix those tests."

This reverts commit 97a6921000a70f485499c850dd6d0eb915f1527d.
When fps cap is hit, delay current thread only.

Fixes Jeanne d'Arc freezing.  Unfortunately, small hit to perf in God of
War, but may improve audio quality anyway...
Log context switch time, shorten logging a bit.

This is really useful for seeing why games are slow or hanging.
Merge pull request #3394 from unknownbrackets/framebuf-wait

Use a wait when hitting capped fps, instead of eating
Fixed some doubled semicolons