]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/s390x: Use translator_use_goto_tb
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 20 Jun 2021 23:42:04 +0000 (16:42 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 9 Jul 2021 16:42:28 +0000 (09:42 -0700)
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/s390x/translate.c

index 5af68e01c67f5ae3f6668171a75fc0d9557b6d2f..767e77ca19760c2ed0ee74af0603978feabdc5e6 100644 (file)
@@ -696,12 +696,7 @@ static bool use_goto_tb(DisasContext *s, uint64_t dest)
     if (unlikely(use_exit_tb(s))) {
         return false;
     }
-#ifndef CONFIG_USER_ONLY
-    return (dest & TARGET_PAGE_MASK) == (s->base.tb->pc & TARGET_PAGE_MASK) ||
-           (dest & TARGET_PAGE_MASK) == (s->base.pc_next & TARGET_PAGE_MASK);
-#else
-    return true;
-#endif
+    return translator_use_goto_tb(&s->base, dest);
 }
 
 static void account_noninline_branch(DisasContext *s, int cc_op)