aboutsummaryrefslogtreecommitdiff
path: root/target/sh4/helper.c
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2017-05-01 23:20:43 +0200
committerAurelien Jarno <aurelien@aurel32.net>2017-05-13 11:17:29 +0200
commit39682608111713404b53ade46edc87a7f85a0f12 (patch)
tree04d47fd8674a5ddd4d307173334438295cfaf19d /target/sh4/helper.c
parenta6215749dc299214642b3dfd690227243606331f (diff)
downloadqemu-39682608111713404b53ade46edc87a7f85a0f12.zip
qemu-39682608111713404b53ade46edc87a7f85a0f12.tar.gz
qemu-39682608111713404b53ade46edc87a7f85a0f12.tar.bz2
target/sh4: get rid of DELAY_SLOT_CLEARME
Now that ctx->flags has been split, it becomes clear that DELAY_SLOT_CLEARME has not impact on the code generation: in both case ctx->envflags is cleared, either by clearing all the flags, or by setting it to 0. This is left-over from pre-TCG era. Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'target/sh4/helper.c')
-rw-r--r--target/sh4/helper.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/target/sh4/helper.c b/target/sh4/helper.c
index 036c5ca..71bb49a 100644
--- a/target/sh4/helper.c
+++ b/target/sh4/helper.c
@@ -170,8 +170,6 @@ void superh_cpu_do_interrupt(CPUState *cs)
/* Clear flags for exception/interrupt routine. */
env->flags &= ~(DELAY_SLOT | DELAY_SLOT_CONDITIONAL | DELAY_SLOT_TRUE);
}
- if (env->flags & DELAY_SLOT_CLEARME)
- env->flags = 0;
if (do_exp) {
env->expevt = cs->exception_index;