From nobody Tue Feb 10 03:16:15 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1697183691; cv=none; d=zohomail.com; s=zohoarc; b=Q+aTpfQNy2f4rKJzca1OYwlcOt1xuOYzeXjtNDh1qWRtntsgJSnRfjnwFtS0K6cAfv+FGlCwZPuuEPWqaoUjfoV4RKT7tvqnRv6xL3Zl0Ad350gGiRibouYwr0JrTXj4bl5XHs0+AGsNLygVErW4hWDrjTMVlHoW3+jio1wH85I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697183691; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=uM0E9ceeAMWbhoziwyQzC8KkJu+r5Wws3ZK6kx7zlsI=; b=kbAv+mISSsgOv1B68iDJUPVucpgoMZN3bd7/1/JjqCUgAIynNoT1Gr1I/e8HrSLy2mZe3zeMtXX3F7ESOY/142JKGU5f0Wuuh/uyiVAx9qQQXHGfFscu5jJ4sI9ThB/HCVV9EZtuBPAGO8qaY3t5/2HQETdmbIWCbvS/EZF93Xw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1697183691126881.8133928197022; Fri, 13 Oct 2023 00:54:51 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qrCwR-0004xe-Ls; Fri, 13 Oct 2023 03:50:39 -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 1qrCwQ-0004w1-3h for qemu-devel@nongnu.org; Fri, 13 Oct 2023 03:50:38 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qrCwD-0004WB-TZ for qemu-devel@nongnu.org; Fri, 13 Oct 2023 03:50:37 -0400 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-3296b49c546so1516066f8f.3 for ; Fri, 13 Oct 2023 00:50:24 -0700 (PDT) Received: from localhost.localdomain (adsl-170.109.242.226.tellas.gr. [109.242.226.170]) by smtp.gmail.com with ESMTPSA id m8-20020adfa3c8000000b0032d7fde2d3csm7990663wrb.79.2023.10.13.00.50.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 00:50:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697183423; x=1697788223; 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=uM0E9ceeAMWbhoziwyQzC8KkJu+r5Wws3ZK6kx7zlsI=; b=w/bvPJ35yI9w+7OsNGJMY0u9u473e9Z0MK/wEalC2Alq0BXPVPvUYWcZe3owQnTc6r IBu6WOtF0UqdPimG2os7IYilkUDgGfKKOBLLeKcRaDyW2BCgDZnAQvSDiuxff6cYv01N Ch4VIYwahEgBxmTTqGIRoGMpFupVMW0ihQO/NshlfAHmK2yyFP8WpzyorFUFfh6OtORm v/GnX/n/4AX0DYOFhKvhxdAWpTCOL2p2aMx+dGb/mZSzFQK0zABStZrej6pbIjPd1N6I EdWqj4NXoouU0nX6+R2DsMADt73RVgAAzO8WlquNKL+zAP2+Bq+PT5kpJ2Szlcmbw1Mi crAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697183423; x=1697788223; 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=uM0E9ceeAMWbhoziwyQzC8KkJu+r5Wws3ZK6kx7zlsI=; b=PzuFttyAKasQdhkam+PqAIZGzi4Cw51vy6Lc+RtZLN5zFbjOpgot65QHJpnjB5C0ll Q5IzyaK5FtYCpv9p2MOKQZ3GiUnk11x8vwbkWbozVfkK7zN+zyQWyK882KWam4IWkyhm kO21VClEm0uuRdAyD0uPbD9ZKBB+LhNrohsMdcom6A/6432rSb1XxWbQrppN5FsyjM+q zNQRBFw2XhpB853iBLbGGKp/p7nkAsiZmBhswSt9GwFxMIFOwZqVb+r00swTVr0MRb4u KoDUFwcbeTzNVhYq3+/YZ9o/XbdeOSp1pTlI7G8uX6M1dSmNqRoCmJO5tZaxgPzJwa5K Un5Q== X-Gm-Message-State: AOJu0YzPup7M00h7jsYy7hyoRYt1HJEaCkrex9jN8fXPH7d+4KytowPX TfYlIjXZroVhagiw878erSgpwaq63e7PuxjeQiU= X-Google-Smtp-Source: AGHT+IE9WYCCohzHh/dJgVOrJSIwZVaoJrzToSsXXJJbXMkEQPCaJw3bA7f9gz2HQnSFJFipqQIpyw== X-Received: by 2002:adf:eec5:0:b0:319:7134:a3cf with SMTP id a5-20020adfeec5000000b003197134a3cfmr23274764wrp.31.1697183422786; Fri, 13 Oct 2023 00:50:22 -0700 (PDT) From: Emmanouil Pitsidianakis To: qemu-devel@nongnu.org, qemu-arm@nongnu.org, qemu-block@nongnu.org Cc: Emmanouil Pitsidianakis , Richard Henderson Subject: [RFC PATCH 19/78] target/hppa: add fallthrough pseudo-keyword Date: Fri, 13 Oct 2023 10:47:23 +0300 Message-Id: X-Mailer: git-send-email 2.39.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=manos.pitsidianakis@linaro.org; helo=mail-wr1-x42d.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=unavailable 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1697183692936100003 Content-Type: text/plain; charset="utf-8" In preparation of raising -Wimplicit-fallthrough to 5, replace all fall-through comments with the fallthrough attribute pseudo-keyword. Signed-off-by: Emmanouil Pitsidianakis --- target/hppa/translate.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 9f3ba9f42f..1df81b0fa2 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -480,14 +480,14 @@ static DisasCond cond_make(TCGCond c, TCGv_reg a0, TC= Gv_reg a1) static void cond_free(DisasCond *cond) { switch (cond->c) { default: cond->a0 =3D NULL; cond->a1 =3D NULL; - /* fallthru */ + fallthrough; case TCG_COND_ALWAYS: cond->c =3D TCG_COND_NEVER; break; case TCG_COND_NEVER: break; } } @@ -3831,65 +3831,65 @@ static bool trans_fcmp_d(DisasContext *ctx, arg_fcl= ass2 *a) static bool trans_ftest(DisasContext *ctx, arg_ftest *a) { TCGv_reg t; =20 nullify_over(ctx); =20 t =3D get_temp(ctx); tcg_gen_ld32u_reg(t, tcg_env, offsetof(CPUHPPAState, fr0_shadow)); =20 if (a->y =3D=3D 1) { int mask; bool inv =3D false; =20 switch (a->c) { case 0: /* simple */ tcg_gen_andi_reg(t, t, 0x4000000); ctx->null_cond =3D cond_make_0(TCG_COND_NE, t); goto done; case 2: /* rej */ inv =3D true; - /* fallthru */ + fallthrough; case 1: /* acc */ mask =3D 0x43ff800; break; case 6: /* rej8 */ inv =3D true; - /* fallthru */ + fallthrough; case 5: /* acc8 */ mask =3D 0x43f8000; break; case 9: /* acc6 */ mask =3D 0x43e0000; break; case 13: /* acc4 */ mask =3D 0x4380000; break; case 17: /* acc2 */ mask =3D 0x4200000; break; default: gen_illegal(ctx); return true; } if (inv) { TCGv_reg c =3D load_const(ctx, mask); tcg_gen_or_reg(t, t, c); ctx->null_cond =3D cond_make(TCG_COND_EQ, t, c); } else { tcg_gen_andi_reg(t, t, mask); ctx->null_cond =3D cond_make_0(TCG_COND_EQ, t); } } else { unsigned cbit =3D (a->y ^ 1) - 1; =20 tcg_gen_extract_reg(t, t, 21 - cbit, 1); ctx->null_cond =3D cond_make_0(TCG_COND_NE, t); } =20 done: return nullify_end(ctx); } =20 /* * Float class 2 */ @@ -4219,28 +4219,28 @@ static void hppa_tr_translate_insn(DisasContextBase= *dcbase, CPUState *cs) static void hppa_tr_tb_stop(DisasContextBase *dcbase, CPUState *cs) { DisasContext *ctx =3D container_of(dcbase, DisasContext, base); DisasJumpType is_jmp =3D ctx->base.is_jmp; =20 switch (is_jmp) { case DISAS_NORETURN: break; case DISAS_TOO_MANY: case DISAS_IAQ_N_STALE: case DISAS_IAQ_N_STALE_EXIT: copy_iaoq_entry(cpu_iaoq_f, ctx->iaoq_f, cpu_iaoq_f); copy_iaoq_entry(cpu_iaoq_b, ctx->iaoq_b, cpu_iaoq_b); nullify_save(ctx); - /* FALLTHRU */ + fallthrough; case DISAS_IAQ_N_UPDATED: if (is_jmp !=3D DISAS_IAQ_N_STALE_EXIT) { tcg_gen_lookup_and_goto_ptr(); break; } - /* FALLTHRU */ + fallthrough; case DISAS_EXIT: tcg_gen_exit_tb(NULL, 0); break; default: g_assert_not_reached(); } } --=20 2.39.2