summaryrefslogtreecommitdiffstats
path: root/target/sh4/helper.c
diff options
context:
space:
mode:
authorStefan Hajnoczi2017-05-16 16:26:17 +0200
committerStefan Hajnoczi2017-05-16 16:26:17 +0200
commit6a8d8349864fb01fdd5a7d1c2e7ca0e5ad24f3d0 (patch)
tree858bfa97afaed4370108851e9f0711f731a3f1b9 /target/sh4/helper.c
parentMerge remote-tracking branch 'rth/tags/pull-s390-20170512' into staging (diff)
parenttarget/sh4: use cpu_loop_exit_restore (diff)
downloadqemu-6a8d8349864fb01fdd5a7d1c2e7ca0e5ad24f3d0.tar.gz
qemu-6a8d8349864fb01fdd5a7d1c2e7ca0e5ad24f3d0.tar.xz
qemu-6a8d8349864fb01fdd5a7d1c2e7ca0e5ad24f3d0.zip
Merge remote-tracking branch 'aurel32/tags/pull-target-sh4-20170513' into staging
Queued target/sh4 patches # gpg: Signature made Sat 13 May 2017 10:25:41 AM BST # gpg: using RSA key 0xBA9C78061DDD8C9B # gpg: Good signature from "Aurelien Jarno <aurelien@aurel32.net>" # gpg: aka "Aurelien Jarno <aurelien@jarno.fr>" # gpg: aka "Aurelien Jarno <aurel32@debian.org>" # Primary key fingerprint: 7746 2642 A9EF 94FD 0F77 196D BA9C 7806 1DDD 8C9B * aurel32/tags/pull-target-sh4-20170513: target/sh4: use cpu_loop_exit_restore target/sh4: trap unaligned accesses target/sh4: movua.l is an SH4-A only instruction target/sh4: implement tas.b using atomic helper target/sh4: generate fences for SH4 target/sh4: optimize gen_write_sr using extract op target/sh4: optimize gen_store_fpr64 target/sh4: fold ctx->bstate = BS_BRANCH into gen_conditional_jump target/sh4: only save flags state at the end of the TB target/sh4: fix BS_EXCP exit target/sh4: fix BS_STOP exit target/sh4: move DELAY_SLOT_TRUE flag into a separate global target/sh4: do not include DELAY_SLOT_TRUE in the TB state target/sh4: get rid of DELAY_SLOT_CLEARME target/sh4: split ctx->flags into ctx->tbflags and ctx->envflags Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'target/sh4/helper.c')
-rw-r--r--target/sh4/helper.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/target/sh4/helper.c b/target/sh4/helper.c
index 036c5ca56c..8f8ce81401 100644
--- a/target/sh4/helper.c
+++ b/target/sh4/helper.c
@@ -168,10 +168,8 @@ void superh_cpu_do_interrupt(CPUState *cs)
/* Branch instruction should be executed again before delay slot. */
env->spc -= 2;
/* Clear flags for exception/interrupt routine. */
- env->flags &= ~(DELAY_SLOT | DELAY_SLOT_CONDITIONAL | DELAY_SLOT_TRUE);
+ env->flags &= ~(DELAY_SLOT | DELAY_SLOT_CONDITIONAL);
}
- if (env->flags & DELAY_SLOT_CLEARME)
- env->flags = 0;
if (do_exp) {
env->expevt = cs->exception_index;