target-sh4: fix fpu disabled/illegal exception
authorAurelien Jarno <aurelien@aurel32.net>
Tue, 11 Jan 2011 15:13:34 +0000 (16:13 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Tue, 11 Jan 2011 16:25:24 +0000 (17:25 +0100)
commit6f14be170913af03dbc6487565d740a53f4c5a89
treebeba6e94dc1b7b7eea1425dfedf961f3134e6e39
parent5f937042db28b7bd047005e78bcb14f91fd6aab0
target-sh4: fix fpu disabled/illegal exception

Illegal instructions in a slot delay should generate a slot illegal
instruction exception instead of an illegal instruction exception.

The current PC should be saved before generating such an exception,
but should not be corrected if in a delay slot, given it's already
done in the exception handler do_interrupt().

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-sh4/translate.c