]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target/s390x: Exit tb after executing ex_value
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 2 Jul 2022 06:02:28 +0000 (11:32 +0530)
committerThomas Huth <thuth@redhat.com>
Wed, 6 Jul 2022 17:04:57 +0000 (19:04 +0200)
When EXECUTE sets ex_value to interrupt the constructed instruction,
we implicitly disable interrupts so that the value is not corrupted.
Exit to the main loop after execution, so that we re-evaluate any
pending interrupts.

Reported-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220702060228.420454-5-richard.henderson@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
target/s390x/tcg/translate.c

index eac59c3dd18305d9b8f00547b09a799927671a42..e2ee00567151ceb9b96454e9af31f472d52d13bf 100644 (file)
@@ -6593,7 +6593,7 @@ static void s390x_tr_init_disas_context(DisasContextBase *dcbase, CPUState *cs)
 
     dc->cc_op = CC_OP_DYNAMIC;
     dc->ex_value = dc->base.tb->cs_base;
-    dc->exit_to_mainloop = (dc->base.tb->flags & FLAG_MASK_PER);
+    dc->exit_to_mainloop = (dc->base.tb->flags & FLAG_MASK_PER) || dc->ex_value;
 }
 
 static void s390x_tr_tb_start(DisasContextBase *db, CPUState *cs)