From patchwork Fri May 3 07:20:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 794360 Delivered-To: patch@linaro.org Received: by 2002:adf:a153:0:b0:34d:5089:5a9e with SMTP id r19csp609740wrr; Fri, 3 May 2024 00:21:41 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVDO1qWiLUDmCtO7JeBQGFaD3MOlrYRu90j1pjWjgMhllSbMQkkV8wqBU+hFYsK3NE/IsacmXIjLWgdLlYC6XzL X-Google-Smtp-Source: AGHT+IHZmyIgCNzyqZeQyijNwJGwu4+uCLEgs1VYZQiL9yh/jQvtbkr6g1qC9GluFrCmdmUEL5PT X-Received: by 2002:ad4:58a5:0:b0:69c:b559:547d with SMTP id ea5-20020ad458a5000000b0069cb559547dmr9007232qvb.25.1714720901085; Fri, 03 May 2024 00:21:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1714720901; cv=none; d=google.com; s=arc-20160816; b=iCJvUitDz3aQJIgg+njvKVuMVxgK2TaiRKyIbq2iEbJmSmjXvbyqbvsQY+jf3LP3f6 fnZXYp8OKaehfOm+1DnNq3tm3mJ9+yM2iI9rFY8VpvstIsYwq/u/zU8y8QQ0Yqbgw/9q Neopl8rT5hJdCEOHICHJQ3A9mznBa/pcmrpaGfV9Nk/SZBrd/XhTbC7qk0zE4RCiTtPc 5gYAca/dXMSLpwdv211uDyj67uw64QGhCB1S9kUp1Up6aA9o+qPj1vxBV654FzQcJgkj 2+PpVdDPHfKLpJrBfhiE2a5bXhHjyRRhmuFKM0mq/QEwgYESXGnAXe6DTUVdma/r0JD/ Q9eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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:cc:to :from:dkim-signature; bh=hAInt9n6R0I02RcTDmsM7sU3am9+yxrb3hMuH3Duw+8=; fh=ZXDWg7hKG7Hj19AbRuutTLw+Zvn/B9RsGUUw/YagpFI=; b=mMTOQS5yG7t7myoXT4G1wVOczli2tmOvwucvXdOXEyrjhGNsrCF0FMsq04otMT6GSr FZbLCYBH8OPnY3twMMvZSvGJiAhqna9OKhb36kqKfWD0VvzGdT5X+Ecx7LFNrOWjcwmn a2O1Z0NU/05IAX9VHgTHsDYjXFutA2mLt/C+hp8U+bUJVpU34elqo2A0bXcgEsBJeJun KTf0vzHuZIShS7tvS86E6kbhoxOt4YxXgC3OBGvvcPW2lrsNtqlLmYXcsJm9XByd8tqg Ua9fNxMI6rs0iOGauqEbStnuJ4f9sc3RjmG0pJ3eE2tcxDj2M1grImBqEehWoOVBO35k rMeg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U6J58vk3; 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 im15-20020a056214246f00b0069902184208si2627863qvb.265.2024.05.03.00.21.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 03 May 2024 00:21: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=U6J58vk3; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s2nDt-00017W-TI; Fri, 03 May 2024 03:20:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s2nDs-0000zo-OS for qemu-devel@nongnu.org; Fri, 03 May 2024 03:20:48 -0400 Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s2nDr-0001LQ-2k for qemu-devel@nongnu.org; Fri, 03 May 2024 03:20:48 -0400 Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2dcc8d10d39so101723801fa.3 for ; Fri, 03 May 2024 00:20:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714720845; x=1715325645; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=hAInt9n6R0I02RcTDmsM7sU3am9+yxrb3hMuH3Duw+8=; b=U6J58vk3/SzG1xTpfPKxZTWczLFPVEQEWl6BX3RrPJxuqglXbPIFFnlIBjlAKdtFDs d7A54X7tzoPywW/DeSIg4pbBsM+8cg0R0f4bK6KHcoK8KiIJORv9WoCfBPEBU9VfO22B 7GqN0aA+qL25I2omLwIib9Y2GbwNWM7kAowhYzgC9n4IyjPZJcrUCPWyv/IuHtAUmXj7 1O9mJ9KG/kwfddpIPx9dLYU3G7Nn3z07eHhFY8WtmWY5bGe5y9d+afftxQztRBGC1Ymp PCPBZUVLNPxUqtJ+FtN+AfYZlJj30V10/Eov51wH9oyIhiamPfhLoek7R1xD7VWtDMSf rx2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714720845; x=1715325645; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hAInt9n6R0I02RcTDmsM7sU3am9+yxrb3hMuH3Duw+8=; b=bOUL2wIuuayFy6YMBBUd8jK2WTWuVtNlMHnxhYVdkVbVzWymkR+Oqn2kT8CN3UP+7b 0uIt2xx7OEKHYH0vb4irsXmxvAy/GDjoIvgeEg4Ck/MK6dW6RehLlnDyERqs1gKlq2Qs IQiSk0aNFqpRvFsIy0FfdwRDx23FbtLS+4y7oy/4XedDdNs/+yzBnPc2pCjKC8cmrupJ nChN6S46BuiM21WYVAzwN8qIT8xhoxbouzPJWA+rDAp04Vy7Tbd53WodRyl25KJUCWRo ibjxePx8ncel8yfj35MmPxG6msoDKqSCMfd5ENnaZeH585XPTaylUCuQFVFuA5Ky/pTa 5iBA== X-Gm-Message-State: AOJu0YwVGL3ACJ8EBZIAaYnyMogHt9nn2KxH0jcb/n4ko7MNsCU9sHxQ dJyAUTvI9oCbRLStyMW8oia+NfL6AV/XPIO1qnRJdBuCdSKGjpZR3HYYoi0lIu1n4LVkRUpMvrl n X-Received: by 2002:a2e:96c3:0:b0:2e1:5644:24e7 with SMTP id d3-20020a2e96c3000000b002e1564424e7mr1222721ljj.13.1714720844841; Fri, 03 May 2024 00:20:44 -0700 (PDT) Received: from m1x-phil.lan ([176.176.179.187]) by smtp.gmail.com with ESMTPSA id dn15-20020a0560000c0f00b0034d9012e74bsm3071456wrb.72.2024.05.03.00.20.43 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 03 May 2024 00:20:44 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , =?utf-8?q?Philippe_Mat?= =?utf-8?q?hieu-Daud=C3=A9?= Subject: [PATCH v2 5/9] target/alpha: Return DISAS_NORETURN once Date: Fri, 3 May 2024 09:20:09 +0200 Message-ID: <20240503072014.24751-6-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240503072014.24751-1-philmd@linaro.org> References: <20240503072014.24751-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::22d; envelope-from=philmd@linaro.org; helo=mail-lj1-x22d.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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Richard Henderson Trivial change to make next commits easier to understand. Signed-off-by: Richard Henderson Message-Id: <20240424234436.995410-4-richard.henderson@linaro.org> [PMD: Split bigger patch, part 3/5] Signed-off-by: Philippe Mathieu-Daudé --- target/alpha/translate.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/target/alpha/translate.c b/target/alpha/translate.c index 01914e7b56..41151f002e 100644 --- a/target/alpha/translate.c +++ b/target/alpha/translate.c @@ -447,12 +447,12 @@ static DisasJumpType gen_bdirect(DisasContext *ctx, int ra, int32_t disp) tcg_gen_goto_tb(0); tcg_gen_movi_i64(cpu_pc, dest); tcg_gen_exit_tb(ctx->base.tb, 0); - return DISAS_NORETURN; } else { tcg_gen_movi_i64(cpu_pc, dest); tcg_gen_lookup_and_goto_ptr(); - return DISAS_NORETURN; } + + return DISAS_NORETURN; } static DisasJumpType gen_bcond_internal(DisasContext *ctx, TCGCond cond, @@ -472,8 +472,6 @@ static DisasJumpType gen_bcond_internal(DisasContext *ctx, TCGCond cond, tcg_gen_goto_tb(1); tcg_gen_movi_i64(cpu_pc, dest); tcg_gen_exit_tb(ctx->base.tb, 1); - - return DISAS_NORETURN; } else { TCGv_i64 i = tcg_constant_i64(imm); TCGv_i64 d = tcg_constant_i64(dest); @@ -481,8 +479,9 @@ static DisasJumpType gen_bcond_internal(DisasContext *ctx, TCGCond cond, tcg_gen_movcond_i64(cond, cpu_pc, cmp, i, d, p); tcg_gen_lookup_and_goto_ptr(); - return DISAS_NORETURN; } + + return DISAS_NORETURN; } static DisasJumpType gen_bcond(DisasContext *ctx, TCGCond cond, int ra,