From nobody Tue Feb 10 14:33:14 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1556259830; cv=none; d=zoho.com; s=zohoarc; b=Pt5AbWDW+FSKykcXcoXXgX7jV03UD1gSBauMHLMZycqbd1pPwxw6ydPjnz659YJUOAAi+loO48e+q6SQnqHjUSnwD7JaxBKMVck0zhwjMpDkS840BHXP4jSSZefYkg+G4ez/rjMaZGy+8xFbaByDJXLjf+jdMnQ8BDWznrx1haw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556259830; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=NafF6FNnwo0sG7rZb7YQHJiVnCEhNeBrSdBqZe+ZRwY=; b=Y7XnTQC+ZIX40uEd3okf6gfO3D8iaPhw6evIiDpOvEaPxt0+SMEg/hReVsrWbeo2B/wkxD4JyLT3JPITvFKpsuy+BZquYi8mHkjzoqTTB+eMozR1oB/ZYxQrThFSaALfBcepAy5U9q4C65EPYmkYjRjxEI1r0mGyR3VYzuARMog= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1556259830810105.64679338045858; Thu, 25 Apr 2019 23:23:50 -0700 (PDT) Received: from localhost ([127.0.0.1]:40140 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJuGz-0005q3-Lu for importer@patchew.org; Fri, 26 Apr 2019 02:23:49 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60165) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJu0d-0005aR-LK for qemu-devel@nongnu.org; Fri, 26 Apr 2019 02:07:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hJu0b-0004ZK-P9 for qemu-devel@nongnu.org; Fri, 26 Apr 2019 02:06:55 -0400 Received: from ozlabs.org ([203.11.71.1]:53953) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hJu0b-0004VB-2b; Fri, 26 Apr 2019 02:06:53 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 44r3Tp4vWcz9sNl; Fri, 26 Apr 2019 16:06:38 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1556258798; bh=W9sQhKyJrQXMj/mZuUVkZXbL5uKfz7ioG1dbmzOxLGE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pvYzw0u/sfJ2xd93yE8Rkc1qivvg+e47X6/ccxrFq7SJZ3IIzJsdaj0Qd3+NTB50L 0oXobs8vZfbr4t4mI62A7gnsCQ5ELTBeK/SuhS6AgjZMoeJesG5sjH5BwCMM4KSpn9 Fty8AKGc5gh+lQVfiQZpE2XyTkiwp5X1Tg11zn4A= From: David Gibson To: peter.maydell@linaro.org Date: Fri, 26 Apr 2019 16:06:17 +1000 Message-Id: <20190426060627.18153-27-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190426060627.18153-1-david@gibson.dropbear.id.au> References: <20190426060627.18153-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 203.11.71.1 Subject: [Qemu-devel] [PULL 26/36] target/ppc: Style fixes for translate/vmx-impl.inc.c X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: gkurz@kaod.org, Greg Kurz , qemu-devel@nongnu.org, qemu-ppc@nongnu.org, clg@kaod.org, David Gibson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Signed-off-by: David Gibson Reviewed-by: C=C3=A9dric Le Goater Reviewed-by: Greg Kurz --- target/ppc/translate/vmx-impl.inc.c | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/target/ppc/translate/vmx-impl.inc.c b/target/ppc/translate/vmx= -impl.inc.c index eb10c533ca..bd3ff40e68 100644 --- a/target/ppc/translate/vmx-impl.inc.c +++ b/target/ppc/translate/vmx-impl.inc.c @@ -15,7 +15,7 @@ static inline TCGv_ptr gen_avr_ptr(int reg) } =20 #define GEN_VR_LDX(name, opc2, opc3) = \ -static void glue(gen_, name)(DisasContext *ctx) = \ +static void glue(gen_, name)(DisasContext *ctx) = \ { = \ TCGv EA; = \ TCGv_i64 avr; = \ @@ -28,8 +28,10 @@ static void glue(gen_, name)(DisasContext *ctx) EA =3D tcg_temp_new(); = \ gen_addr_reg_index(ctx, EA); = \ tcg_gen_andi_tl(EA, EA, ~0xf); = \ - /* We only need to swap high and low halves. gen_qemu_ld64_i64 does = \ - necessary 64-bit byteswap already. */ = \ + /* = \ + * We only need to swap high and low halves. gen_qemu_ld64_i64 = \ + * does necessary 64-bit byteswap already. = \ + */ = \ if (ctx->le_mode) { = \ gen_qemu_ld64_i64(ctx, avr, EA); = \ set_avr64(rD(ctx->opcode), avr, false); = \ @@ -61,8 +63,10 @@ static void gen_st##name(DisasContext *ctx) = \ EA =3D tcg_temp_new(); = \ gen_addr_reg_index(ctx, EA); = \ tcg_gen_andi_tl(EA, EA, ~0xf); = \ - /* We only need to swap high and low halves. gen_qemu_st64_i64 does = \ - necessary 64-bit byteswap already. */ = \ + /* = \ + * We only need to swap high and low halves. gen_qemu_st64_i64 = \ + * does necessary 64-bit byteswap already. = \ + */ = \ if (ctx->le_mode) { = \ get_avr64(avr, rD(ctx->opcode), false); = \ gen_qemu_st64_i64(ctx, avr, EA); = \ @@ -296,7 +300,7 @@ GEN_VXFORM_V(vnand, MO_64, tcg_gen_gvec_nand, 2, 22); GEN_VXFORM_V(vorc, MO_64, tcg_gen_gvec_orc, 2, 21); =20 #define GEN_VXFORM(name, opc2, opc3) \ -static void glue(gen_, name)(DisasContext *ctx) = \ +static void glue(gen_, name)(DisasContext *ctx) \ { \ TCGv_ptr ra, rb, rd; \ if (unlikely(!ctx->altivec_enabled)) { \ @@ -306,7 +310,7 @@ static void glue(gen_, name)(DisasContext *ctx) ra =3D gen_avr_ptr(rA(ctx->opcode)); \ rb =3D gen_avr_ptr(rB(ctx->opcode)); \ rd =3D gen_avr_ptr(rD(ctx->opcode)); \ - gen_helper_##name (rd, ra, rb); \ + gen_helper_##name(rd, ra, rb); \ tcg_temp_free_ptr(ra); \ tcg_temp_free_ptr(rb); \ tcg_temp_free_ptr(rd); \ @@ -758,7 +762,7 @@ GEN_VXFORM_DUPI(vspltish, tcg_gen_gvec_dup16i, 6, 13); GEN_VXFORM_DUPI(vspltisw, tcg_gen_gvec_dup32i, 6, 14); =20 #define GEN_VXFORM_NOA(name, opc2, opc3) \ -static void glue(gen_, name)(DisasContext *ctx) = \ +static void glue(gen_, name)(DisasContext *ctx) \ { \ TCGv_ptr rb, rd; \ if (unlikely(!ctx->altivec_enabled)) { \ @@ -767,9 +771,9 @@ static void glue(gen_, name)(DisasContext *ctx) } \ rb =3D gen_avr_ptr(rB(ctx->opcode)); \ rd =3D gen_avr_ptr(rD(ctx->opcode)); \ - gen_helper_##name (rd, rb); \ + gen_helper_##name(rd, rb); \ tcg_temp_free_ptr(rb); \ - tcg_temp_free_ptr(rd); \ + tcg_temp_free_ptr(rd); \ } =20 #define GEN_VXFORM_NOA_ENV(name, opc2, opc3) \ @@ -943,7 +947,7 @@ static void gen_vsldoi(DisasContext *ctx) rb =3D gen_avr_ptr(rB(ctx->opcode)); rd =3D gen_avr_ptr(rD(ctx->opcode)); sh =3D tcg_const_i32(VSH(ctx->opcode)); - gen_helper_vsldoi (rd, ra, rb, sh); + gen_helper_vsldoi(rd, ra, rb, sh); tcg_temp_free_ptr(ra); tcg_temp_free_ptr(rb); tcg_temp_free_ptr(rd); --=20 2.20.1