target/sh4: only save flags state at the end of the TB
commitac9707eaf6124cb0dd81202d88730f540e7c7d5b
authorAurelien Jarno <aurelien@aurel32.net>
Mon, 1 May 2017 21:20:43 +0000 (1 23:20 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 13 May 2017 09:18:22 +0000 (13 11:18 +0200)
tree1ae26c057465a5677bd0e7a2f8207b811f3251e1
parent632056651a038e85ea9b62f1ad63a98c929ee40f
target/sh4: only save flags state at the end of the TB

There is no need to save flags when entering and exiting the delay slot.
They can be saved only when reaching the end of the TB. If the TB is
interrupted before by an exception, they will be restored using
restore_state_to_opc.

Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target/sh4/translate.c