x86jit: Use templates to avoid some void * casts.

Makes it a bit cleaner and potentially safer.
Avoid an infinite loop on bad stack walk.

If the address is wrong, it'll re-trigger debug mode, which will re-walk
the stack, which will continue ad infinitum.
Use simple delta compression for rewind savestates.

This makes it reasonable to keep a bunch more around, since they are
generally < 10% the size when compressed like this (often smaller.)
Set return status in sceMpegAvcDecodeStopYCbCr().

Like the other Stop().  Fixes video end in Tales of Phantasia X.
Merge pull request #5130 from unknownbrackets/mpeg-minor

Set return status in sceMpegAvcDecodeStopYCbCr()
Merge pull request #5129 from unknownbrackets/savestates

Use simple delta compression for rewind savestates.
Merge pull request #5128 from unknownbrackets/jit-minor

Cut down on void * casts within jit
Android/Linux buildfix.

Arg, why?