From patchwork Sun Jun 20 04:21:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 464318 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:102:0:0:0:0 with SMTP id x2csp1357558jao; Sat, 19 Jun 2021 21:24:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcTHhN+QOfe9tI61IoppXdUbdYvPhBnMI/LOhzO+B3q7KrFqhGfQlCUhvBIeVvFMpfJGUu X-Received: by 2002:a25:9b08:: with SMTP id y8mr23697639ybn.417.1624163081516; Sat, 19 Jun 2021 21:24:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624163081; cv=none; d=google.com; s=arc-20160816; b=v7J9VS7yUD4K0Pt9LmWI7UsT4VLSZLtYALz0VkMKlRyDlpG3dBd4MlhIrCg8w4hgJ2 mLTpcGEFrShkcXox+HvAQMfqDvbwAJTcJFimcpwxLrMqUf+viFGBkQG/7AgOFCnVJ+8R 9ZlPYPLNgtGx3Wa6RxJPvbg4vvnYqbiyYK5jXXnO0nOKyY5bQnxU/VfH3wjj9LDjBr4O koUOP5xjfgHJtuLIHPzjKO4kORiFu4ifIFaAOzdGFJEjKMktrPVI0e5KnW7KfHUzIa2h MG27eMmRs+4ARxyyoJ9G+PvY/EbftoBZ261XN+0hoD1FgDhem8XBRCrW1PhUi5uKzu3v uLrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=ktgo4xWUwEPLcu/uB4HSWazqzoEfJMOHsnknfFL5vLg=; b=ECX5x+nMRS7G6iPMyVfct1REK7OkBc0pmCsrjuXdJAZwCs8qXQEQ9I8s7M5Y3rKR+e /r0d/HOZ0tM3CL8auJGHnyeqzzZMEgtrdn+9XUK4ZvdHzEFnb9dyhqe/NMRNJWVLracF jMUVBF0zHiCmsD1+JnJpjp1gNviLfe5RvnQasCVwh/h3HN1YMISZJ5vFcYHEbRiMc0Gn dnmfC6otJJn/MqwVrf2rclfDRX0/1d/+XLW+tw1i7Oz3rxEMFfV78sMxDQSbNLalUMQJ wOFDSis+8TTner4WahUZ2ysuB83fOIwFxLZhVTKdXjxs4EJe5AVaQNyxO1eBQaqVUs8M iing== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c2brptxg; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id y2si7124002ybk.52.2021.06.19.21.24.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 19 Jun 2021 21:24:41 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c2brptxg; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:60938 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lup0i-0002TS-W0 for patch@linaro.org; Sun, 20 Jun 2021 00:24:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41416) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1luoxw-0005JI-RC for qemu-devel@nongnu.org; Sun, 20 Jun 2021 00:21:50 -0400 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]:46943) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1luoxu-0007x6-2d for qemu-devel@nongnu.org; Sun, 20 Jun 2021 00:21:48 -0400 Received: by mail-pf1-x431.google.com with SMTP id x16so10978592pfa.13 for ; Sat, 19 Jun 2021 21:21:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ktgo4xWUwEPLcu/uB4HSWazqzoEfJMOHsnknfFL5vLg=; b=c2brptxgdv6EOmz8vTGY5YLkwDzhXqq3s79sfvVO3gYB8KuWIJaOo5RhAffFnTmaEp sr4I6FWTlFyOhVmvkHkto7GP30Ri+hAC1vX29GI3xN76QHfbVCLUyJhYO6OarhcOUZWY 0DJgWdtifQNqyYdPdZ7Ry/KjLwaxY0H7jMa+Z6iO4XAhawlbaMQ/XxP+kXMBeKE8xKAU dNESrARWgw6uSLwtZ++A4mj0JSNxLNHcytZhcSIjVwZnYpQgGGDl0tWP804i7UsQpqf5 cQK4/UOu9bh2uG8QBlwQAs8K/eBUH6sZV0qGLndRpyAufhtz5FgdL95Es/2lE2ZNnLMd Mcsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ktgo4xWUwEPLcu/uB4HSWazqzoEfJMOHsnknfFL5vLg=; b=Z6crMwvlGUY69ZE5svjlxTm5mjqIkWB4/3ksZps7vrdnSEi/0oeLFjRpDpgZsLCdqs nYABH0iQiYChozV8HerfEzXiR6vZURoRoTZQJbdn/kvssgWSB8ZewhvakbQQpNxVcBXJ HKzyNKK/3K16HH3mswgrg9CrpfgzpS6hGCevuR7WnB4z9KigY5/GAHgAvfmWLTg8LwoK tZ7cdRKFGp2jUroR5Ul56uay+EhkBOFJsFwQQUdbOr9EguMZnrmjunwf5lS06xcPpsXS dOSCCWkgRD9XXE390UdtI+lh2KvRCgr8w+q85W2V8hjQvynm1d9Hit/QCFmNRMvmCYzD P0+g== X-Gm-Message-State: AOAM532XWiy0obLJnxlnxaxaMeheTPuhHqBS/WSyyLNilYEja1y+U5Rw md7yOfYTQUA4BQgBzN1VJrcCzK4eBb+olA== X-Received: by 2002:a65:6a52:: with SMTP id o18mr17601325pgu.177.1624162904719; Sat, 19 Jun 2021 21:21:44 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id b6sm11923156pfv.16.2021.06.19.21.21.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Jun 2021 21:21:44 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 2/9] target/cris: Replace DISAS_TB_JUMP with DISAS_NORETURN Date: Sat, 19 Jun 2021 21:21:34 -0700 Message-Id: <20210620042141.1235541-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210620042141.1235541-1-richard.henderson@linaro.org> References: <20210620042141.1235541-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::431; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x431.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: edgar.iglesias@gmail.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The only semantic of DISAS_TB_JUMP is that we've done goto_tb, which is the same as DISAS_NORETURN -- we've exited the tb. Signed-off-by: Richard Henderson --- target/cris/translate.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) -- 2.25.1 diff --git a/target/cris/translate.c b/target/cris/translate.c index bed7a7ed10..2ff4319dd1 100644 --- a/target/cris/translate.c +++ b/target/cris/translate.c @@ -55,7 +55,6 @@ /* is_jmp field values */ #define DISAS_JUMP DISAS_TARGET_0 /* only pc was modified dynamically */ #define DISAS_UPDATE DISAS_TARGET_1 /* cpu state was modified dynamically */ -#define DISAS_TB_JUMP DISAS_TARGET_2 /* only pc was modified statically */ #define DISAS_SWI DISAS_TARGET_3 /* Used by the decoder. */ @@ -3243,12 +3242,12 @@ void gen_intermediate_code(CPUState *cs, TranslationBlock *tb, int max_insns) gen_goto_tb(dc, 1, dc->jmp_pc); gen_set_label(l1); gen_goto_tb(dc, 0, dc->pc); - dc->base.is_jmp = DISAS_TB_JUMP; + dc->base.is_jmp = DISAS_NORETURN; dc->jmp = JMP_NOJMP; } else if (dc->jmp == JMP_DIRECT) { cris_evaluate_flags(dc); gen_goto_tb(dc, 0, dc->jmp_pc); - dc->base.is_jmp = DISAS_TB_JUMP; + dc->base.is_jmp = DISAS_NORETURN; dc->jmp = JMP_NOJMP; } else { TCGv c = tcg_const_tl(dc->pc); @@ -3311,7 +3310,7 @@ void gen_intermediate_code(CPUState *cs, TranslationBlock *tb, int max_insns) tcg_gen_exit_tb(NULL, 0); break; case DISAS_SWI: - case DISAS_TB_JUMP: + case DISAS_NORETURN: /* nothing more to generate */ break; }