From nobody Tue Nov 11 03:21:00 2025 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; 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=1561038776; cv=none; d=zoho.com; s=zohoarc; b=NDgMJMetGAqbf/c0nI8+T4I6MmDXW64nzWLn1glrsPHEqbaNqPEPwq+hFMBF2W/srktylFTuptjmTK/Ez+4Oy9kHEvjINQOY+lekJMDnW5f74whv1l03J70/zVpkG3/7GaoQTjslKP32Rl0wJiQ3i6GBZJzk1dcraB5U1U98Y+8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1561038776; 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=sNTX68IHRnRr9ZIugssmmg8CClFbo1GdlwPfn2lCmN0=; b=aPn4u8597A8+G4N4udXcG0qAanXBwP7/QxT8OXdYKezuuMRLmRWXLAvwdc2n9J5lbpdilO7PMRjv07bFzwuk+kdbZMnjlOEfkxgVoIjgZWGcGMg0I3KIImoP7sccz8sgD/tv9S1PW5rQA16aE8CY3kvrvjY4zXDtyq9TqPNOecM= ARC-Authentication-Results: i=1; mx.zoho.com; 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 15610387764178.62931328083846; Thu, 20 Jun 2019 06:52:56 -0700 (PDT) Received: from localhost ([::1]:47892 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdxUl-00007a-B0 for importer@patchew.org; Thu, 20 Jun 2019 09:52:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57237) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdxLF-0002kd-1I for qemu-devel@nongnu.org; Thu, 20 Jun 2019 09:43:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hdxBy-0004qn-LH for qemu-devel@nongnu.org; Thu, 20 Jun 2019 09:35:19 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:45605 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hdxBy-0004qB-1Q for qemu-devel@nongnu.org; Thu, 20 Jun 2019 09:33:30 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 146111A476B; Thu, 20 Jun 2019 15:33:27 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id ED9641A4163; Thu, 20 Jun 2019 15:33:26 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Thu, 20 Jun 2019 15:33:12 +0200 Message-Id: <1561037595-14413-2-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1561037595-14413-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1561037595-14413-1-git-send-email-aleksandar.markovic@rt-rk.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v4 1/4] MAINTAINERS: Update file items for MIPS Malta board 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: arikalo@wavecomp.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic hw/mips/gt64xxx_pci.c is used for Malta only, so it is logical to place this file in Malta board section of the MAINTAINERS file. Signed-off-by: Aleksandar Markovic Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Aleksandar Rikalo --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index acbad13..869e87b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -930,6 +930,7 @@ M: Aurelien Jarno R: Aleksandar Rikalo S: Maintained F: hw/mips/mips_malta.c +F: hw/mips/gt64xxx_pci.c F: tests/acceptance/linux_ssh_mips_malta.py =20 Mipssim --=20 2.7.4 From nobody Tue Nov 11 03:21:00 2025 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; 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=1561038783; cv=none; d=zoho.com; s=zohoarc; b=hJCNQrwOnLoI71eLwfvnGaHQPpKhVyTpGJDH+97rPqqOYmv4ICyqLAPDnNy1MhwsrSa9VrS95Rolyv45IA5q+9f0BOnoAaOqEa1ZAb0Rq297d3TAb9YgNR2A6IaWp7EC6SmtWDxHna0u1TSOaMhwPV8uas5A4/Cz5qBHTkSSjUQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1561038783; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=a4b8oTKB7YdmgJO3XQeuxRSpH6NLw7oFylqCTVnb928=; b=LwTCpnRm5etm+BP7XwZgWv1x3f6hnecBbfG966jACjofv/HHbXba5VHCSQaireI4uTQhdJf8xPa0z3wlmr8ZUD6OWV0OYXxMoc0Y4/+QSqUm6Hqidm2Xxz92BrJ6Lln1dRN/qt/pWRniXfAX4vGeVwDShC3fkvXAPoLm7vhIsDk= ARC-Authentication-Results: i=1; mx.zoho.com; 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 156103878352413.536530290260885; Thu, 20 Jun 2019 06:53:03 -0700 (PDT) Received: from localhost ([::1]:47894 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdxUs-0000SL-Ip for importer@patchew.org; Thu, 20 Jun 2019 09:53:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57206) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdxLE-0002eg-VR for qemu-devel@nongnu.org; Thu, 20 Jun 2019 09:43:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hdxBy-0004qs-LY for qemu-devel@nongnu.org; Thu, 20 Jun 2019 09:35:19 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:45625 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hdxBy-0004qF-1r for qemu-devel@nongnu.org; Thu, 20 Jun 2019 09:33:30 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 263E31A4766; Thu, 20 Jun 2019 15:33:27 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 02D3F1A4558; Thu, 20 Jun 2019 15:33:27 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Thu, 20 Jun 2019 15:33:13 +0200 Message-Id: <1561037595-14413-3-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1561037595-14413-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1561037595-14413-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v4 2/4] MAINTAINERS: Consolidate MIPS disassembler-related items 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: arikalo@wavecomp.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Eliminate duplicate MIPS disassembler-related items in the MAINTAINERS file, and use wildcards to shorten the list of involved files. Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Rikalo --- MAINTAINERS | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 869e87b..f9f66e5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -212,9 +212,7 @@ R: Aleksandar Rikalo S: Maintained F: target/mips/ F: default-configs/*mips* -F: disas/mips.c -F: disas/nanomips.cpp -F: disas/nanomips.h +F: disas/*mips* F: hw/intc/mips_gic.c F: hw/mips/ F: hw/misc/mips_* @@ -2321,7 +2319,6 @@ M: Aurelien Jarno R: Aleksandar Rikalo S: Maintained F: tcg/mips/ -F: disas/mips.c =20 PPC TCG target M: Richard Henderson --=20 2.7.4 From nobody Tue Nov 11 03:21:00 2025 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; 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=1561039037; cv=none; d=zoho.com; s=zohoarc; b=NHbNWxE8DpjE0Hfczg7IupkzhkLE57m2Q/nKxLoCG6jDEhBYXur/58+FhGngIbbOdlnGxlOa0VS+AqQvo5Zs7x+TqHv4Yo/RKy3gSx6cQzvlToDVO9+nyrLyR8rthw/dCSUosfdfjyvUENfzp703LhEpBgQMpTLRsXdlbaDDsaQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1561039037; 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=lqFBvZ0xhRrFzcbe0fH91370P9y5pj6tTfTa6id4ih8=; b=k97xvE0yfI3Y5WW3llwy4ZqcCH/ddtvungp98CS0hUNtaMr76Q+vbPBWzNJF1baEd+TTbc9KnosynAboaFqBJo94hse9kCjfkT9Gf2o9vakYwTlwoiJg/oeE5t3pY83gG6q2TMnjCYTnKT/nycljmvYoJUSWoVfY/g8N64yIPxs= ARC-Authentication-Results: i=1; mx.zoho.com; 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 1561039037909935.8824697191653; Thu, 20 Jun 2019 06:57:17 -0700 (PDT) Received: from localhost ([::1]:47920 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdxYy-0005OM-TO for importer@patchew.org; Thu, 20 Jun 2019 09:57:16 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56907) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdxLE-00029D-7q for qemu-devel@nongnu.org; Thu, 20 Jun 2019 09:43:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hdxBy-0004rC-Pn for qemu-devel@nongnu.org; Thu, 20 Jun 2019 09:35:48 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:45632 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hdxBy-0004qH-Cn for qemu-devel@nongnu.org; Thu, 20 Jun 2019 09:33:30 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 3BFFE1A4558; Thu, 20 Jun 2019 15:33:27 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 0C5BB1A471F; Thu, 20 Jun 2019 15:33:27 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Thu, 20 Jun 2019 15:33:14 +0200 Message-Id: <1561037595-14413-4-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1561037595-14413-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1561037595-14413-1-git-send-email-aleksandar.markovic@rt-rk.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v4 3/4] target/mips: Fix some space checkpatch errors in translate.c 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: arikalo@wavecomp.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Remove some space-related checkpatch warning. Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Rikalo Reviewed-by: Philippe Mathieu-Daud=C3=A9 Tested-by: Philippe Mathieu-Daud=C3=A9 --- target/mips/translate.c | 240 ++++++++++++++++++++++++--------------------= ---- 1 file changed, 122 insertions(+), 118 deletions(-) diff --git a/target/mips/translate.c b/target/mips/translate.c index a3cf976..54e0160 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -2617,7 +2617,7 @@ static const char * const mxuregnames[] =3D { } while (0) =20 /* General purpose registers moves. */ -static inline void gen_load_gpr (TCGv t, int reg) +static inline void gen_load_gpr(TCGv t, int reg) { if (reg =3D=3D 0) tcg_gen_movi_tl(t, 0); @@ -2625,14 +2625,14 @@ static inline void gen_load_gpr (TCGv t, int reg) tcg_gen_mov_tl(t, cpu_gpr[reg]); } =20 -static inline void gen_store_gpr (TCGv t, int reg) +static inline void gen_store_gpr(TCGv t, int reg) { if (reg !=3D 0) tcg_gen_mov_tl(cpu_gpr[reg], t); } =20 /* Moves to/from shadow registers. */ -static inline void gen_load_srsgpr (int from, int to) +static inline void gen_load_srsgpr(int from, int to) { TCGv t0 =3D tcg_temp_new(); =20 @@ -2839,7 +2839,7 @@ static void gen_store_fpr64(DisasContext *ctx, TCGv_i= 64 t, int reg) } } =20 -static inline int get_fp_bit (int cc) +static inline int get_fp_bit(int cc) { if (cc) return 24 + cc; @@ -2848,7 +2848,8 @@ static inline int get_fp_bit (int cc) } =20 /* Addresses computation */ -static inline void gen_op_addr_add (DisasContext *ctx, TCGv ret, TCGv arg0= , TCGv arg1) +static inline void gen_op_addr_add(DisasContext *ctx, TCGv ret, TCGv arg0, + TCGv arg1) { tcg_gen_add_tl(ret, arg0, arg1); =20 @@ -3328,8 +3329,8 @@ OP_LD_ATOMIC(lld,ld64); #endif #undef OP_LD_ATOMIC =20 -static void gen_base_offset_addr (DisasContext *ctx, TCGv addr, - int base, int offset) +static void gen_base_offset_addr(DisasContext *ctx, TCGv addr, + int base, int offset) { if (base =3D=3D 0) { tcg_gen_movi_tl(addr, offset); @@ -3341,7 +3342,7 @@ static void gen_base_offset_addr (DisasContext *ctx, = TCGv addr, } } =20 -static target_ulong pc_relative_pc (DisasContext *ctx) +static target_ulong pc_relative_pc(DisasContext *ctx) { target_ulong pc =3D ctx->base.pc_next; =20 @@ -3578,8 +3579,8 @@ static void gen_llwp(DisasContext *ctx, uint32_t base= , int16_t offset, } =20 /* Store */ -static void gen_st (DisasContext *ctx, uint32_t opc, int rt, - int base, int offset) +static void gen_st(DisasContext *ctx, uint32_t opc, int rt, + int base, int offset) { TCGv t0 =3D tcg_temp_new(); TCGv t1 =3D tcg_temp_new(); @@ -3717,8 +3718,8 @@ static void gen_scwp(DisasContext *ctx, uint32_t base= , int16_t offset, } =20 /* Load and store */ -static void gen_flt_ldst (DisasContext *ctx, uint32_t opc, int ft, - TCGv t0) +static void gen_flt_ldst(DisasContext *ctx, uint32_t opc, int ft, + TCGv t0) { /* Don't do NOP if destination is zero: we must perform the actual memory access. */ @@ -5132,8 +5133,8 @@ static void gen_mul_txx9(DisasContext *ctx, uint32_t = opc, tcg_temp_free(t1); } =20 -static void gen_mul_vr54xx (DisasContext *ctx, uint32_t opc, - int rd, int rs, int rt) +static void gen_mul_vr54xx(DisasContext *ctx, uint32_t opc, + int rd, int rs, int rt) { TCGv t0 =3D tcg_temp_new(); TCGv t1 =3D tcg_temp_new(); @@ -5196,8 +5197,8 @@ static void gen_mul_vr54xx (DisasContext *ctx, uint32= _t opc, tcg_temp_free(t1); } =20 -static void gen_cl (DisasContext *ctx, uint32_t opc, - int rd, int rs) +static void gen_cl(DisasContext *ctx, uint32_t opc, + int rd, int rs) { TCGv t0; =20 @@ -6188,8 +6189,8 @@ static void gen_compute_branch_nm(DisasContext *ctx, = uint32_t opc, =20 =20 /* special3 bitfield operations */ -static void gen_bitops (DisasContext *ctx, uint32_t opc, int rt, - int rs, int lsb, int msb) +static void gen_bitops(DisasContext *ctx, uint32_t opc, int rt, + int rs, int lsb, int msb) { TCGv t0 =3D tcg_temp_new(); TCGv t1 =3D tcg_temp_new(); @@ -6259,7 +6260,7 @@ fail: tcg_temp_free(t1); } =20 -static void gen_bshfl (DisasContext *ctx, uint32_t op2, int rt, int rd) +static void gen_bshfl(DisasContext *ctx, uint32_t op2, int rt, int rd) { TCGv t0; =20 @@ -6502,7 +6503,7 @@ static inline void gen_mfhc0_load64(TCGv arg, target_= ulong off, int shift) tcg_temp_free_i64(t0); } =20 -static inline void gen_mfc0_load32 (TCGv arg, target_ulong off) +static inline void gen_mfc0_load32(TCGv arg, target_ulong off) { TCGv_i32 t0 =3D tcg_temp_new_i32(); =20 @@ -6511,13 +6512,13 @@ static inline void gen_mfc0_load32 (TCGv arg, targe= t_ulong off) tcg_temp_free_i32(t0); } =20 -static inline void gen_mfc0_load64 (TCGv arg, target_ulong off) +static inline void gen_mfc0_load64(TCGv arg, target_ulong off) { tcg_gen_ld_tl(arg, cpu_env, off); tcg_gen_ext32s_tl(arg, arg); } =20 -static inline void gen_mtc0_store32 (TCGv arg, target_ulong off) +static inline void gen_mtc0_store32(TCGv arg, target_ulong off) { TCGv_i32 t0 =3D tcg_temp_new_i32(); =20 @@ -10077,7 +10078,8 @@ die: generate_exception_end(ctx, EXCP_RI); } =20 -static void gen_cp0 (CPUMIPSState *env, DisasContext *ctx, uint32_t opc, i= nt rt, int rd) +static void gen_cp0(CPUMIPSState *env, DisasContext *ctx, uint32_t opc, + int rt, int rd) { const char *opn =3D "ldst"; =20 @@ -10465,22 +10467,22 @@ enum fopcode { OPC_CVT_W_S =3D FOP(36, FMT_S), OPC_CVT_L_S =3D FOP(37, FMT_S), OPC_CVT_PS_S =3D FOP(38, FMT_S), - OPC_CMP_F_S =3D FOP (48, FMT_S), - OPC_CMP_UN_S =3D FOP (49, FMT_S), - OPC_CMP_EQ_S =3D FOP (50, FMT_S), - OPC_CMP_UEQ_S =3D FOP (51, FMT_S), - OPC_CMP_OLT_S =3D FOP (52, FMT_S), - OPC_CMP_ULT_S =3D FOP (53, FMT_S), - OPC_CMP_OLE_S =3D FOP (54, FMT_S), - OPC_CMP_ULE_S =3D FOP (55, FMT_S), - OPC_CMP_SF_S =3D FOP (56, FMT_S), - OPC_CMP_NGLE_S =3D FOP (57, FMT_S), - OPC_CMP_SEQ_S =3D FOP (58, FMT_S), - OPC_CMP_NGL_S =3D FOP (59, FMT_S), - OPC_CMP_LT_S =3D FOP (60, FMT_S), - OPC_CMP_NGE_S =3D FOP (61, FMT_S), - OPC_CMP_LE_S =3D FOP (62, FMT_S), - OPC_CMP_NGT_S =3D FOP (63, FMT_S), + OPC_CMP_F_S =3D FOP(48, FMT_S), + OPC_CMP_UN_S =3D FOP(49, FMT_S), + OPC_CMP_EQ_S =3D FOP(50, FMT_S), + OPC_CMP_UEQ_S =3D FOP(51, FMT_S), + OPC_CMP_OLT_S =3D FOP(52, FMT_S), + OPC_CMP_ULT_S =3D FOP(53, FMT_S), + OPC_CMP_OLE_S =3D FOP(54, FMT_S), + OPC_CMP_ULE_S =3D FOP(55, FMT_S), + OPC_CMP_SF_S =3D FOP(56, FMT_S), + OPC_CMP_NGLE_S =3D FOP(57, FMT_S), + OPC_CMP_SEQ_S =3D FOP(58, FMT_S), + OPC_CMP_NGL_S =3D FOP(59, FMT_S), + OPC_CMP_LT_S =3D FOP(60, FMT_S), + OPC_CMP_NGE_S =3D FOP(61, FMT_S), + OPC_CMP_LE_S =3D FOP(62, FMT_S), + OPC_CMP_NGT_S =3D FOP(63, FMT_S), =20 OPC_ADD_D =3D FOP(0, FMT_D), OPC_SUB_D =3D FOP(1, FMT_D), @@ -10521,22 +10523,22 @@ enum fopcode { OPC_CVT_S_D =3D FOP(32, FMT_D), OPC_CVT_W_D =3D FOP(36, FMT_D), OPC_CVT_L_D =3D FOP(37, FMT_D), - OPC_CMP_F_D =3D FOP (48, FMT_D), - OPC_CMP_UN_D =3D FOP (49, FMT_D), - OPC_CMP_EQ_D =3D FOP (50, FMT_D), - OPC_CMP_UEQ_D =3D FOP (51, FMT_D), - OPC_CMP_OLT_D =3D FOP (52, FMT_D), - OPC_CMP_ULT_D =3D FOP (53, FMT_D), - OPC_CMP_OLE_D =3D FOP (54, FMT_D), - OPC_CMP_ULE_D =3D FOP (55, FMT_D), - OPC_CMP_SF_D =3D FOP (56, FMT_D), - OPC_CMP_NGLE_D =3D FOP (57, FMT_D), - OPC_CMP_SEQ_D =3D FOP (58, FMT_D), - OPC_CMP_NGL_D =3D FOP (59, FMT_D), - OPC_CMP_LT_D =3D FOP (60, FMT_D), - OPC_CMP_NGE_D =3D FOP (61, FMT_D), - OPC_CMP_LE_D =3D FOP (62, FMT_D), - OPC_CMP_NGT_D =3D FOP (63, FMT_D), + OPC_CMP_F_D =3D FOP(48, FMT_D), + OPC_CMP_UN_D =3D FOP(49, FMT_D), + OPC_CMP_EQ_D =3D FOP(50, FMT_D), + OPC_CMP_UEQ_D =3D FOP(51, FMT_D), + OPC_CMP_OLT_D =3D FOP(52, FMT_D), + OPC_CMP_ULT_D =3D FOP(53, FMT_D), + OPC_CMP_OLE_D =3D FOP(54, FMT_D), + OPC_CMP_ULE_D =3D FOP(55, FMT_D), + OPC_CMP_SF_D =3D FOP(56, FMT_D), + OPC_CMP_NGLE_D =3D FOP(57, FMT_D), + OPC_CMP_SEQ_D =3D FOP(58, FMT_D), + OPC_CMP_NGL_D =3D FOP(59, FMT_D), + OPC_CMP_LT_D =3D FOP(60, FMT_D), + OPC_CMP_NGE_D =3D FOP(61, FMT_D), + OPC_CMP_LE_D =3D FOP(62, FMT_D), + OPC_CMP_NGT_D =3D FOP(63, FMT_D), =20 OPC_CVT_S_W =3D FOP(32, FMT_W), OPC_CVT_D_W =3D FOP(33, FMT_W), @@ -10568,22 +10570,22 @@ enum fopcode { OPC_PLU_PS =3D FOP(45, FMT_PS), OPC_PUL_PS =3D FOP(46, FMT_PS), OPC_PUU_PS =3D FOP(47, FMT_PS), - OPC_CMP_F_PS =3D FOP (48, FMT_PS), - OPC_CMP_UN_PS =3D FOP (49, FMT_PS), - OPC_CMP_EQ_PS =3D FOP (50, FMT_PS), - OPC_CMP_UEQ_PS =3D FOP (51, FMT_PS), - OPC_CMP_OLT_PS =3D FOP (52, FMT_PS), - OPC_CMP_ULT_PS =3D FOP (53, FMT_PS), - OPC_CMP_OLE_PS =3D FOP (54, FMT_PS), - OPC_CMP_ULE_PS =3D FOP (55, FMT_PS), - OPC_CMP_SF_PS =3D FOP (56, FMT_PS), - OPC_CMP_NGLE_PS =3D FOP (57, FMT_PS), - OPC_CMP_SEQ_PS =3D FOP (58, FMT_PS), - OPC_CMP_NGL_PS =3D FOP (59, FMT_PS), - OPC_CMP_LT_PS =3D FOP (60, FMT_PS), - OPC_CMP_NGE_PS =3D FOP (61, FMT_PS), - OPC_CMP_LE_PS =3D FOP (62, FMT_PS), - OPC_CMP_NGT_PS =3D FOP (63, FMT_PS), + OPC_CMP_F_PS =3D FOP(48, FMT_PS), + OPC_CMP_UN_PS =3D FOP(49, FMT_PS), + OPC_CMP_EQ_PS =3D FOP(50, FMT_PS), + OPC_CMP_UEQ_PS =3D FOP(51, FMT_PS), + OPC_CMP_OLT_PS =3D FOP(52, FMT_PS), + OPC_CMP_ULT_PS =3D FOP(53, FMT_PS), + OPC_CMP_OLE_PS =3D FOP(54, FMT_PS), + OPC_CMP_ULE_PS =3D FOP(55, FMT_PS), + OPC_CMP_SF_PS =3D FOP(56, FMT_PS), + OPC_CMP_NGLE_PS =3D FOP(57, FMT_PS), + OPC_CMP_SEQ_PS =3D FOP(58, FMT_PS), + OPC_CMP_NGL_PS =3D FOP(59, FMT_PS), + OPC_CMP_LT_PS =3D FOP(60, FMT_PS), + OPC_CMP_NGE_PS =3D FOP(61, FMT_PS), + OPC_CMP_LE_PS =3D FOP(62, FMT_PS), + OPC_CMP_NGT_PS =3D FOP(63, FMT_PS), }; =20 enum r6_f_cmp_op { @@ -10633,7 +10635,8 @@ enum r6_f_cmp_op { R6_OPC_CMP_SUNE_D =3D FOP(26, FMT_L), R6_OPC_CMP_SNE_D =3D FOP(27, FMT_L), }; -static void gen_cp1 (DisasContext *ctx, uint32_t opc, int rt, int fs) + +static void gen_cp1(DisasContext *ctx, uint32_t opc, int rt, int fs) { TCGv t0 =3D tcg_temp_new(); =20 @@ -10714,7 +10717,7 @@ static void gen_cp1 (DisasContext *ctx, uint32_t op= c, int rt, int fs) tcg_temp_free(t0); } =20 -static void gen_movci (DisasContext *ctx, int rd, int rs, int cc, int tf) +static void gen_movci(DisasContext *ctx, int rd, int rs, int cc, int tf) { TCGLabel *l1; TCGCond cond; @@ -10763,7 +10766,8 @@ static inline void gen_movcf_s(DisasContext *ctx, i= nt fs, int fd, int cc, tcg_temp_free_i32(t0); } =20 -static inline void gen_movcf_d (DisasContext *ctx, int fs, int fd, int cc,= int tf) +static inline void gen_movcf_d(DisasContext *ctx, int fs, int fd, int cc, + int tf) { int cond; TCGv_i32 t0 =3D tcg_temp_new_i32(); @@ -10886,8 +10890,8 @@ static void gen_sel_d(DisasContext *ctx, enum fopco= de op1, int fd, int ft, tcg_temp_free_i64(t1); } =20 -static void gen_farith (DisasContext *ctx, enum fopcode op1, - int ft, int fs, int fd, int cc) +static void gen_farith(DisasContext *ctx, enum fopcode op1, + int ft, int fs, int fd, int cc) { uint32_t func =3D ctx->opcode & 0x3f; switch (op1) { @@ -12314,8 +12318,8 @@ static void gen_farith (DisasContext *ctx, enum fop= code op1, } =20 /* Coprocessor 3 (FPU) */ -static void gen_flt3_ldst (DisasContext *ctx, uint32_t opc, - int fd, int fs, int base, int index) +static void gen_flt3_ldst(DisasContext *ctx, uint32_t opc, + int fd, int fs, int base, int index) { TCGv t0 =3D tcg_temp_new(); =20 @@ -12394,8 +12398,8 @@ static void gen_flt3_ldst (DisasContext *ctx, uint3= 2_t opc, tcg_temp_free(t0); } =20 -static void gen_flt3_arith (DisasContext *ctx, uint32_t opc, - int fd, int fr, int fs, int ft) +static void gen_flt3_arith(DisasContext *ctx, uint32_t opc, + int fd, int fr, int fs, int ft) { switch (opc) { case OPC_ALNV_PS: @@ -13157,17 +13161,17 @@ enum { RR_RY_CNVT_SEW =3D 0x6, }; =20 -static int xlat (int r) +static int xlat(int r) { static int map[] =3D { 16, 17, 2, 3, 4, 5, 6, 7 }; =20 return map[r]; } =20 -static void gen_mips16_save (DisasContext *ctx, - int xsregs, int aregs, - int do_ra, int do_s0, int do_s1, - int framesize) +static void gen_mips16_save(DisasContext *ctx, + int xsregs, int aregs, + int do_ra, int do_s0, int do_s1, + int framesize) { TCGv t0 =3D tcg_temp_new(); TCGv t1 =3D tcg_temp_new(); @@ -13322,10 +13326,10 @@ static void gen_mips16_save (DisasContext *ctx, tcg_temp_free(t2); } =20 -static void gen_mips16_restore (DisasContext *ctx, - int xsregs, int aregs, - int do_ra, int do_s0, int do_s1, - int framesize) +static void gen_mips16_restore(DisasContext *ctx, + int xsregs, int aregs, + int do_ra, int do_s0, int do_s1, + int framesize) { int astatic; TCGv t0 =3D tcg_temp_new(); @@ -13428,8 +13432,8 @@ static void gen_mips16_restore (DisasContext *ctx, tcg_temp_free(t2); } =20 -static void gen_addiupc (DisasContext *ctx, int rx, int imm, - int is_64_bit, int extended) +static void gen_addiupc(DisasContext *ctx, int rx, int imm, + int is_64_bit, int extended) { TCGv t0; =20 @@ -13459,9 +13463,9 @@ static void gen_cache_operation(DisasContext *ctx, = uint32_t op, int base, } =20 #if defined(TARGET_MIPS64) -static void decode_i64_mips16 (DisasContext *ctx, - int ry, int funct, int16_t offset, - int extended) +static void decode_i64_mips16(DisasContext *ctx, + int ry, int funct, int16_t offset, + int extended) { switch (funct) { case I64_LDSP: @@ -13520,7 +13524,7 @@ static void decode_i64_mips16 (DisasContext *ctx, } #endif =20 -static int decode_extended_mips16_opc (CPUMIPSState *env, DisasContext *ct= x) +static int decode_extended_mips16_opc(CPUMIPSState *env, DisasContext *ctx) { int extend =3D cpu_lduw_code(env, ctx->base.pc_next + 2); int op, rx, ry, funct, sa; @@ -13734,7 +13738,7 @@ static inline void gen_helper_do_semihosting(void *= env) } #endif =20 -static int decode_mips16_opc (CPUMIPSState *env, DisasContext *ctx) +static int decode_mips16_opc(CPUMIPSState *env, DisasContext *ctx) { int rx, ry; int sa; @@ -13957,7 +13961,7 @@ static int decode_mips16_opc (CPUMIPSState *env, Di= sasContext *ctx) case M16_OPC_LWPC: gen_ld(ctx, OPC_LWPC, rx, 0, ((uint8_t)ctx->opcode) << 2); break; -#if defined (TARGET_MIPS64) +#if defined(TARGET_MIPS64) case M16_OPC_LWU: check_insn(ctx, ISA_MIPS3); check_mips_64(ctx); @@ -14061,7 +14065,7 @@ static int decode_mips16_opc (CPUMIPSState *env, Di= sasContext *ctx) case RR_SRAV: gen_shift(ctx, OPC_SRAV, ry, rx, ry); break; -#if defined (TARGET_MIPS64) +#if defined(TARGET_MIPS64) case RR_DSRL: check_insn(ctx, ISA_MIPS3); check_mips_64(ctx); @@ -14124,7 +14128,7 @@ static int decode_mips16_opc (CPUMIPSState *env, Di= sasContext *ctx) case RR_MFLO: gen_HILO(ctx, OPC_MFLO, 0, rx); break; -#if defined (TARGET_MIPS64) +#if defined(TARGET_MIPS64) case RR_DSRA: check_insn(ctx, ISA_MIPS3); check_mips_64(ctx); @@ -14158,7 +14162,7 @@ static int decode_mips16_opc (CPUMIPSState *env, Di= sasContext *ctx) case RR_DIVU: gen_muldiv(ctx, OPC_DIVU, 0, rx, ry); break; -#if defined (TARGET_MIPS64) +#if defined(TARGET_MIPS64) case RR_DMULT: check_insn(ctx, ISA_MIPS3); check_mips_64(ctx); @@ -14802,7 +14806,7 @@ enum { ADDIUR1SP =3D 0x1 }; =20 -static int mmreg (int r) +static int mmreg(int r) { static const int map[] =3D { 16, 17, 2, 3, 4, 5, 6, 7 }; =20 @@ -14810,7 +14814,7 @@ static int mmreg (int r) } =20 /* Used for 16-bit store instructions. */ -static int mmreg2 (int r) +static int mmreg2(int r) { static const int map[] =3D { 0, 17, 2, 3, 4, 5, 6, 7 }; =20 @@ -14885,8 +14889,8 @@ static void gen_andi16(DisasContext *ctx) gen_logic_imm(ctx, OPC_ANDI, rd, rs, decoded_imm[encoded]); } =20 -static void gen_ldst_multiple (DisasContext *ctx, uint32_t opc, int reglis= t, - int base, int16_t offset) +static void gen_ldst_multiple(DisasContext *ctx, uint32_t opc, int reglist, + int base, int16_t offset) { TCGv t0, t1; TCGv_i32 t2; @@ -15159,7 +15163,7 @@ static void gen_pool16c_r6_insn(DisasContext *ctx) } } =20 -static void gen_ldxs (DisasContext *ctx, int base, int index, int rd) +static void gen_ldxs(DisasContext *ctx, int base, int index, int rd) { TCGv t0 =3D tcg_temp_new(); TCGv t1 =3D tcg_temp_new(); @@ -15179,8 +15183,8 @@ static void gen_ldxs (DisasContext *ctx, int base, = int index, int rd) tcg_temp_free(t1); } =20 -static void gen_ldst_pair (DisasContext *ctx, uint32_t opc, int rd, - int base, int16_t offset) +static void gen_ldst_pair(DisasContext *ctx, uint32_t opc, int rd, + int base, int16_t offset) { TCGv t0, t1; =20 @@ -15205,14 +15209,14 @@ static void gen_ldst_pair (DisasContext *ctx, uin= t32_t opc, int rd, tcg_gen_movi_tl(t1, 4); gen_op_addr_add(ctx, t0, t0, t1); tcg_gen_qemu_ld_tl(t1, t0, ctx->mem_idx, MO_TESL); - gen_store_gpr(t1, rd+1); + gen_store_gpr(t1, rd + 1); break; case SWP: gen_load_gpr(t1, rd); tcg_gen_qemu_st_tl(t1, t0, ctx->mem_idx, MO_TEUL); tcg_gen_movi_tl(t1, 4); gen_op_addr_add(ctx, t0, t0, t1); - gen_load_gpr(t1, rd+1); + gen_load_gpr(t1, rd + 1); tcg_gen_qemu_st_tl(t1, t0, ctx->mem_idx, MO_TEUL); break; #ifdef TARGET_MIPS64 @@ -15226,14 +15230,14 @@ static void gen_ldst_pair (DisasContext *ctx, uin= t32_t opc, int rd, tcg_gen_movi_tl(t1, 8); gen_op_addr_add(ctx, t0, t0, t1); tcg_gen_qemu_ld_tl(t1, t0, ctx->mem_idx, MO_TEQ); - gen_store_gpr(t1, rd+1); + gen_store_gpr(t1, rd + 1); break; case SDP: gen_load_gpr(t1, rd); tcg_gen_qemu_st_tl(t1, t0, ctx->mem_idx, MO_TEQ); tcg_gen_movi_tl(t1, 8); gen_op_addr_add(ctx, t0, t0, t1); - gen_load_gpr(t1, rd+1); + gen_load_gpr(t1, rd + 1); tcg_gen_qemu_st_tl(t1, t0, ctx->mem_idx, MO_TEQ); break; #endif @@ -15270,7 +15274,7 @@ static void gen_sync(int stype) tcg_gen_mb(tcg_mo); } =20 -static void gen_pool32axf (CPUMIPSState *env, DisasContext *ctx, int rt, i= nt rs) +static void gen_pool32axf(CPUMIPSState *env, DisasContext *ctx, int rt, in= t rs) { int extension =3D (ctx->opcode >> 6) & 0x3f; int minor =3D (ctx->opcode >> 12) & 0xf; @@ -17234,7 +17238,7 @@ static void decode_micromips32_opc(CPUMIPSState *en= v, DisasContext *ctx) } } =20 -static int decode_micromips_opc (CPUMIPSState *env, DisasContext *ctx) +static int decode_micromips_opc(CPUMIPSState *env, DisasContext *ctx) { uint32_t op; =20 @@ -27881,11 +27885,11 @@ static void gen_check_zero_element(TCGv tresult, = uint8_t df, uint8_t wt) eval_big =3D 0x8000000000000000ULL; break; } - tcg_gen_subi_i64(t0, msa_wr_d[wt<<1], eval_zero_or_big); - tcg_gen_andc_i64(t0, t0, msa_wr_d[wt<<1]); + tcg_gen_subi_i64(t0, msa_wr_d[wt << 1], eval_zero_or_big); + tcg_gen_andc_i64(t0, t0, msa_wr_d[wt << 1]); tcg_gen_andi_i64(t0, t0, eval_big); - tcg_gen_subi_i64(t1, msa_wr_d[(wt<<1)+1], eval_zero_or_big); - tcg_gen_andc_i64(t1, t1, msa_wr_d[(wt<<1)+1]); + tcg_gen_subi_i64(t1, msa_wr_d[(wt << 1) + 1], eval_zero_or_big); + tcg_gen_andc_i64(t1, t1, msa_wr_d[(wt << 1) + 1]); tcg_gen_andi_i64(t1, t1, eval_big); tcg_gen_or_i64(t0, t0, t1); /* if all bits are zero then all elements are not zero */ @@ -27913,7 +27917,7 @@ static void gen_msa_branch(CPUMIPSState *env, Disas= Context *ctx, uint32_t op1) case OPC_BNZ_V: { TCGv_i64 t0 =3D tcg_temp_new_i64(); - tcg_gen_or_i64(t0, msa_wr_d[wt<<1], msa_wr_d[(wt<<1)+1]); + tcg_gen_or_i64(t0, msa_wr_d[wt << 1], msa_wr_d[(wt << 1) + 1]); tcg_gen_setcondi_i64((op1 =3D=3D OPC_BZ_V) ? TCG_COND_EQ : TCG_COND_NE, t0, t0, 0); tcg_gen_trunc_i64_tl(bcond, t0); --=20 2.7.4 From nobody Tue Nov 11 03:21:00 2025 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; 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=1561038990; cv=none; d=zoho.com; s=zohoarc; b=iwCAi/BLLEzHnTCfbaPQlSBnyHXH6rHX2iuuIpCRXoHDt7HA5r45SzTdJum4RkEnRRC6RFC4LAzMcOzj3G4qf6o8FkkRUd/UkkCUGXaHBN3x50qhaMJMzG5BzpXHujyybHqgQVrgFCfwcVLa9stw8SE8xYpYrYMBYAZ6DXSRHq0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1561038990; 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=UpnMsLzs1PWVhYKcS3poHaHcDMKwzGgJAEpjBuwuGFk=; b=b7NCZ7HRkDtg5LG4fsrqTJKuYHCq7b345CO+75G4rX7Iw7o6mlHODk5AlivtBRgy/uszPE203FjNjT+hImvfjTYcbzr6glDf2goxxYktVTYlY8fr3g9VkjTsF1CdouFCOpMsA5UJctISuHQQPnsUuYoEdxi5n66zlrGB5AQNnmw= ARC-Authentication-Results: i=1; mx.zoho.com; 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 1561038990433721.7425218029015; Thu, 20 Jun 2019 06:56:30 -0700 (PDT) Received: from localhost ([::1]:47918 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdxY7-0004ou-20 for importer@patchew.org; Thu, 20 Jun 2019 09:56:23 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56656) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdxLE-000200-C9 for qemu-devel@nongnu.org; Thu, 20 Jun 2019 09:43:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hdxBy-0004qz-Mc for qemu-devel@nongnu.org; Thu, 20 Jun 2019 09:35:27 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:45635 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hdxBy-0004qK-2I for qemu-devel@nongnu.org; Thu, 20 Jun 2019 09:33:30 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 5044A1A44E8; Thu, 20 Jun 2019 15:33:27 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 1B4861A476F; Thu, 20 Jun 2019 15:33:27 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Thu, 20 Jun 2019 15:33:15 +0200 Message-Id: <1561037595-14413-5-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1561037595-14413-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1561037595-14413-1-git-send-email-aleksandar.markovic@rt-rk.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v4 4/4] target/mips: Fix if-else-switch-case arms checkpatch errors in translate.c 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: arikalo@wavecomp.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Remove if-else-switch-case-arms-related checkpatch errors. Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Rikalo Reviewed-by: Philippe Mathieu-Daud=C3=A9 Tested-by: Philippe Mathieu-Daud=C3=A9 --- target/mips/translate.c | 205 +++++++++++++++++++++++++++++++-------------= ---- 1 file changed, 133 insertions(+), 72 deletions(-) diff --git a/target/mips/translate.c b/target/mips/translate.c index 54e0160..e3a0f08 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -2619,16 +2619,18 @@ static const char * const mxuregnames[] =3D { /* General purpose registers moves. */ static inline void gen_load_gpr(TCGv t, int reg) { - if (reg =3D=3D 0) + if (reg =3D=3D 0) { tcg_gen_movi_tl(t, 0); - else + } else { tcg_gen_mov_tl(t, cpu_gpr[reg]); + } } =20 static inline void gen_store_gpr(TCGv t, int reg) { - if (reg !=3D 0) + if (reg !=3D 0) { tcg_gen_mov_tl(cpu_gpr[reg], t); + } } =20 /* Moves to/from shadow registers. */ @@ -2636,9 +2638,9 @@ static inline void gen_load_srsgpr(int from, int to) { TCGv t0 =3D tcg_temp_new(); =20 - if (from =3D=3D 0) + if (from =3D=3D 0) { tcg_gen_movi_tl(t0, 0); - else { + } else { TCGv_i32 t2 =3D tcg_temp_new_i32(); TCGv_ptr addr =3D tcg_temp_new_ptr(); =20 @@ -2841,10 +2843,11 @@ static void gen_store_fpr64(DisasContext *ctx, TCGv= _i64 t, int reg) =20 static inline int get_fp_bit(int cc) { - if (cc) + if (cc) { return 24 + cc; - else + } else { return 23; + } } =20 /* Addresses computation */ @@ -2908,14 +2911,16 @@ static inline void gen_move_high32(TCGv ret, TCGv_i= 64 arg) =20 static inline void check_cp0_enabled(DisasContext *ctx) { - if (unlikely(!(ctx->hflags & MIPS_HFLAG_CP0))) + if (unlikely(!(ctx->hflags & MIPS_HFLAG_CP0))) { generate_exception_err(ctx, EXCP_CpU, 0); + } } =20 static inline void check_cp1_enabled(DisasContext *ctx) { - if (unlikely(!(ctx->hflags & MIPS_HFLAG_FPU))) + if (unlikely(!(ctx->hflags & MIPS_HFLAG_FPU))) { generate_exception_err(ctx, EXCP_CpU, 1); + } } =20 /* Verify that the processor is running with COP1X instructions enabled. @@ -2924,8 +2929,9 @@ static inline void check_cp1_enabled(DisasContext *ct= x) =20 static inline void check_cop1x(DisasContext *ctx) { - if (unlikely(!(ctx->hflags & MIPS_HFLAG_COP1X))) + if (unlikely(!(ctx->hflags & MIPS_HFLAG_COP1X))) { generate_exception_end(ctx, EXCP_RI); + } } =20 /* Verify that the processor is running with 64-bit floating-point @@ -2933,8 +2939,9 @@ static inline void check_cop1x(DisasContext *ctx) =20 static inline void check_cp1_64bitmode(DisasContext *ctx) { - if (unlikely(~ctx->hflags & (MIPS_HFLAG_F64 | MIPS_HFLAG_COP1X))) + if (unlikely(~ctx->hflags & (MIPS_HFLAG_F64 | MIPS_HFLAG_COP1X))) { generate_exception_end(ctx, EXCP_RI); + } } =20 /* @@ -2950,8 +2957,9 @@ static inline void check_cp1_64bitmode(DisasContext *= ctx) */ static inline void check_cp1_registers(DisasContext *ctx, int regs) { - if (unlikely(!(ctx->hflags & MIPS_HFLAG_F64) && (regs & 1))) + if (unlikely(!(ctx->hflags & MIPS_HFLAG_F64) && (regs & 1))) { generate_exception_end(ctx, EXCP_RI); + } } =20 /* Verify that the processor is running with DSP instructions enabled. @@ -3040,8 +3048,9 @@ static inline void check_ps(DisasContext *ctx) instructions are not enabled. */ static inline void check_mips_64(DisasContext *ctx) { - if (unlikely(!(ctx->hflags & MIPS_HFLAG_64))) + if (unlikely(!(ctx->hflags & MIPS_HFLAG_64))) { generate_exception_end(ctx, EXCP_RI); + } } #endif =20 @@ -3126,13 +3135,12 @@ static inline void check_nms(DisasContext *ctx) */ static inline void check_nms_dl_il_sl_tl_l2c(DisasContext *ctx) { - if (unlikely(ctx->CP0_Config5 & (1 << CP0C5_NMS)) && - !(ctx->CP0_Config1 & (1 << CP0C1_DL)) && - !(ctx->CP0_Config1 & (1 << CP0C1_IL)) && - !(ctx->CP0_Config2 & (1 << CP0C2_SL)) && - !(ctx->CP0_Config2 & (1 << CP0C2_TL)) && - !(ctx->CP0_Config5 & (1 << CP0C5_L2C))) - { + if (unlikely((ctx->CP0_Config5 & (1 << CP0C5_NMS)) && + !(ctx->CP0_Config1 & (1 << CP0C1_DL)) && + !(ctx->CP0_Config1 & (1 << CP0C1_IL)) && + !(ctx->CP0_Config2 & (1 << CP0C2_SL)) && + !(ctx->CP0_Config2 & (1 << CP0C2_TL)) && + !(ctx->CP0_Config5 & (1 << CP0C5_L2C)))) { generate_exception_end(ctx, EXCP_RI); } } @@ -3180,23 +3188,56 @@ static inline void gen_cmp ## type ## _ ## fmt(Disa= sContext *ctx, int n, \ gen_ldcmp_fpr##bits (ctx, fp0, fs); = \ gen_ldcmp_fpr##bits (ctx, fp1, ft); = \ switch (n) { = \ - case 0: gen_helper_0e2i(cmp ## type ## _ ## fmt ## _f, fp0, fp1, cc);= break;\ - case 1: gen_helper_0e2i(cmp ## type ## _ ## fmt ## _un, fp0, fp1, cc)= ; break;\ - case 2: gen_helper_0e2i(cmp ## type ## _ ## fmt ## _eq, fp0, fp1, cc)= ; break;\ - case 3: gen_helper_0e2i(cmp ## type ## _ ## fmt ## _ueq, fp0, fp1, cc= ); break;\ - case 4: gen_helper_0e2i(cmp ## type ## _ ## fmt ## _olt, fp0, fp1, cc= ); break;\ - case 5: gen_helper_0e2i(cmp ## type ## _ ## fmt ## _ult, fp0, fp1, cc= ); break;\ - case 6: gen_helper_0e2i(cmp ## type ## _ ## fmt ## _ole, fp0, fp1, cc= ); break;\ - case 7: gen_helper_0e2i(cmp ## type ## _ ## fmt ## _ule, fp0, fp1, cc= ); break;\ - case 8: gen_helper_0e2i(cmp ## type ## _ ## fmt ## _sf, fp0, fp1, cc)= ; break;\ - case 9: gen_helper_0e2i(cmp ## type ## _ ## fmt ## _ngle, fp0, fp1, c= c); break;\ - case 10: gen_helper_0e2i(cmp ## type ## _ ## fmt ## _seq, fp0, fp1, cc= ); break;\ - case 11: gen_helper_0e2i(cmp ## type ## _ ## fmt ## _ngl, fp0, fp1, cc= ); break;\ - case 12: gen_helper_0e2i(cmp ## type ## _ ## fmt ## _lt, fp0, fp1, cc)= ; break;\ - case 13: gen_helper_0e2i(cmp ## type ## _ ## fmt ## _nge, fp0, fp1, cc= ); break;\ - case 14: gen_helper_0e2i(cmp ## type ## _ ## fmt ## _le, fp0, fp1, cc)= ; break;\ - case 15: gen_helper_0e2i(cmp ## type ## _ ## fmt ## _ngt, fp0, fp1, cc= ); break;\ - default: abort(); = \ + case 0: = \ + gen_helper_0e2i(cmp ## type ## _ ## fmt ## _f, fp0, fp1, cc); = \ + break; = \ + case 1: = \ + gen_helper_0e2i(cmp ## type ## _ ## fmt ## _un, fp0, fp1, cc); = \ + break; = \ + case 2: = \ + gen_helper_0e2i(cmp ## type ## _ ## fmt ## _eq, fp0, fp1, cc); = \ + break; = \ + case 3: = \ + gen_helper_0e2i(cmp ## type ## _ ## fmt ## _ueq, fp0, fp1, cc); = \ + break; = \ + case 4: = \ + gen_helper_0e2i(cmp ## type ## _ ## fmt ## _olt, fp0, fp1, cc); = \ + break; = \ + case 5: = \ + gen_helper_0e2i(cmp ## type ## _ ## fmt ## _ult, fp0, fp1, cc); = \ + break; = \ + case 6: = \ + gen_helper_0e2i(cmp ## type ## _ ## fmt ## _ole, fp0, fp1, cc); = \ + break; = \ + case 7: = \ + gen_helper_0e2i(cmp ## type ## _ ## fmt ## _ule, fp0, fp1, cc); = \ + break; = \ + case 8: = \ + gen_helper_0e2i(cmp ## type ## _ ## fmt ## _sf, fp0, fp1, cc); = \ + break; = \ + case 9: = \ + gen_helper_0e2i(cmp ## type ## _ ## fmt ## _ngle, fp0, fp1, cc); = \ + break; = \ + case 10: = \ + gen_helper_0e2i(cmp ## type ## _ ## fmt ## _seq, fp0, fp1, cc); = \ + break; = \ + case 11: = \ + gen_helper_0e2i(cmp ## type ## _ ## fmt ## _ngl, fp0, fp1, cc); = \ + break; = \ + case 12: = \ + gen_helper_0e2i(cmp ## type ## _ ## fmt ## _lt, fp0, fp1, cc); = \ + break; = \ + case 13: = \ + gen_helper_0e2i(cmp ## type ## _ ## fmt ## _nge, fp0, fp1, cc); = \ + break; = \ + case 14: = \ + gen_helper_0e2i(cmp ## type ## _ ## fmt ## _le, fp0, fp1, cc); = \ + break; = \ + case 15: = \ + gen_helper_0e2i(cmp ## type ## _ ## fmt ## _ngt, fp0, fp1, cc); = \ + break; = \ + default: = \ + abort(); = \ } = \ tcg_temp_free_i##bits (fp0); = \ tcg_temp_free_i##bits (fp1); = \ @@ -3882,22 +3923,25 @@ static void gen_logic_imm(DisasContext *ctx, uint32= _t opc, uimm =3D (uint16_t)imm; switch (opc) { case OPC_ANDI: - if (likely(rs !=3D 0)) + if (likely(rs !=3D 0)) { tcg_gen_andi_tl(cpu_gpr[rt], cpu_gpr[rs], uimm); - else + } else { tcg_gen_movi_tl(cpu_gpr[rt], 0); + } break; case OPC_ORI: - if (rs !=3D 0) + if (rs !=3D 0) { tcg_gen_ori_tl(cpu_gpr[rt], cpu_gpr[rs], uimm); - else + } else { tcg_gen_movi_tl(cpu_gpr[rt], uimm); + } break; case OPC_XORI: - if (likely(rs !=3D 0)) + if (likely(rs !=3D 0)) { tcg_gen_xori_tl(cpu_gpr[rt], cpu_gpr[rs], uimm); - else + } else { tcg_gen_movi_tl(cpu_gpr[rt], uimm); + } break; case OPC_LUI: if (rs !=3D 0 && (ctx->insn_flags & ISA_MIPS32R6)) { @@ -6060,8 +6104,9 @@ static void gen_compute_branch (DisasContext *ctx, ui= nt32_t opc, } =20 out: - if (insn_bytes =3D=3D 2) + if (insn_bytes =3D=3D 2) { ctx->hflags |=3D MIPS_HFLAG_B16; + } tcg_temp_free(t0); tcg_temp_free(t1); } @@ -6708,8 +6753,9 @@ static void gen_mfc0(DisasContext *ctx, TCGv arg, int= reg, int sel) { const char *register_name =3D "invalid"; =20 - if (sel !=3D 0) + if (sel !=3D 0) { check_insn(ctx, ISA_MIPS32); + } =20 switch (reg) { case CP0_REGISTER_00: @@ -7464,8 +7510,9 @@ static void gen_mtc0(DisasContext *ctx, TCGv arg, int= reg, int sel) { const char *register_name =3D "invalid"; =20 - if (sel !=3D 0) + if (sel !=3D 0) { check_insn(ctx, ISA_MIPS32); + } =20 if (tb_cflags(ctx->base.tb) & CF_USE_ICOUNT) { gen_io_start(); @@ -8210,8 +8257,9 @@ static void gen_dmfc0(DisasContext *ctx, TCGv arg, in= t reg, int sel) { const char *register_name =3D "invalid"; =20 - if (sel !=3D 0) + if (sel !=3D 0) { check_insn(ctx, ISA_MIPS64); + } =20 switch (reg) { case CP0_REGISTER_00: @@ -8920,8 +8968,9 @@ static void gen_dmtc0(DisasContext *ctx, TCGv arg, in= t reg, int sel) { const char *register_name =3D "invalid"; =20 - if (sel !=3D 0) + if (sel !=3D 0) { check_insn(ctx, ISA_MIPS64); + } =20 if (tb_cflags(ctx->base.tb) & CF_USE_ICOUNT) { gen_io_start(); @@ -9658,12 +9707,12 @@ static void gen_mftr(CPUMIPSState *env, DisasContex= t *ctx, int rt, int rd, =20 if ((env->CP0_VPEConf0 & (1 << CP0VPEC0_MVP)) =3D=3D 0 && ((env->tcs[other_tc].CP0_TCBind & (0xf << CP0TCBd_CurVPE)) !=3D - (env->active_tc.CP0_TCBind & (0xf << CP0TCBd_CurVPE)))) + (env->active_tc.CP0_TCBind & (0xf << CP0TCBd_CurVPE)))) { tcg_gen_movi_tl(t0, -1); - else if ((env->CP0_VPEControl & (0xff << CP0VPECo_TargTC)) > - (env->mvp->CP0_MVPConf0 & (0xff << CP0MVPC0_PTC))) + } else if ((env->CP0_VPEControl & (0xff << CP0VPECo_TargTC)) > + (env->mvp->CP0_MVPConf0 & (0xff << CP0MVPC0_PTC))) { tcg_gen_movi_tl(t0, -1); - else if (u =3D=3D 0) { + } else if (u =3D=3D 0) { switch (rt) { case 1: switch (sel) { @@ -9883,12 +9932,12 @@ static void gen_mttr(CPUMIPSState *env, DisasContex= t *ctx, int rd, int rt, gen_load_gpr(t0, rt); if ((env->CP0_VPEConf0 & (1 << CP0VPEC0_MVP)) =3D=3D 0 && ((env->tcs[other_tc].CP0_TCBind & (0xf << CP0TCBd_CurVPE)) !=3D - (env->active_tc.CP0_TCBind & (0xf << CP0TCBd_CurVPE)))) + (env->active_tc.CP0_TCBind & (0xf << CP0TCBd_CurVPE)))) { /* NOP */ ; - else if ((env->CP0_VPEControl & (0xff << CP0VPECo_TargTC)) > - (env->mvp->CP0_MVPConf0 & (0xff << CP0MVPC0_PTC))) + } else if ((env->CP0_VPEControl & (0xff << CP0VPECo_TargTC)) > + (env->mvp->CP0_MVPConf0 & (0xff << CP0MVPC0_PTC))) { /* NOP */ ; - else if (u =3D=3D 0) { + } else if (u =3D=3D 0) { switch (rd) { case 1: switch (sel) { @@ -10162,8 +10211,9 @@ static void gen_cp0(CPUMIPSState *env, DisasContext= *ctx, uint32_t opc, break; case OPC_TLBWI: opn =3D "tlbwi"; - if (!env->tlb->helper_tlbwi) + if (!env->tlb->helper_tlbwi) { goto die; + } gen_helper_tlbwi(cpu_env); break; case OPC_TLBINV: @@ -10186,20 +10236,23 @@ static void gen_cp0(CPUMIPSState *env, DisasConte= xt *ctx, uint32_t opc, break; case OPC_TLBWR: opn =3D "tlbwr"; - if (!env->tlb->helper_tlbwr) + if (!env->tlb->helper_tlbwr) { goto die; + } gen_helper_tlbwr(cpu_env); break; case OPC_TLBP: opn =3D "tlbp"; - if (!env->tlb->helper_tlbp) + if (!env->tlb->helper_tlbp) { goto die; + } gen_helper_tlbp(cpu_env); break; case OPC_TLBR: opn =3D "tlbr"; - if (!env->tlb->helper_tlbr) + if (!env->tlb->helper_tlbr) { goto die; + } gen_helper_tlbr(cpu_env); break; case OPC_ERET: /* OPC_ERETNC */ @@ -10273,8 +10326,9 @@ static void gen_compute_branch1(DisasContext *ctx, = uint32_t op, goto out; } =20 - if (cc !=3D 0) + if (cc !=3D 0) { check_insn(ctx, ISA_MIPS4 | ISA_MIPS32); + } =20 btarget =3D ctx->base.pc_next + 4 + offset; =20 @@ -10728,10 +10782,11 @@ static void gen_movci(DisasContext *ctx, int rd, = int rs, int cc, int tf) return; } =20 - if (tf) + if (tf) { cond =3D TCG_COND_EQ; - else + } else { cond =3D TCG_COND_NE; + } =20 l1 =3D gen_new_label(); t0 =3D tcg_temp_new_i32(); @@ -10753,10 +10808,11 @@ static inline void gen_movcf_s(DisasContext *ctx,= int fs, int fd, int cc, TCGv_i32 t0 =3D tcg_temp_new_i32(); TCGLabel *l1 =3D gen_new_label(); =20 - if (tf) + if (tf) { cond =3D TCG_COND_EQ; - else + } else { cond =3D TCG_COND_NE; + } =20 tcg_gen_andi_i32(t0, fpu_fcr31, 1 << get_fp_bit(cc)); tcg_gen_brcondi_i32(cond, t0, 0, l1); @@ -10774,10 +10830,11 @@ static inline void gen_movcf_d(DisasContext *ctx,= int fs, int fd, int cc, TCGv_i64 fp0; TCGLabel *l1 =3D gen_new_label(); =20 - if (tf) + if (tf) { cond =3D TCG_COND_EQ; - else + } else { cond =3D TCG_COND_NE; + } =20 tcg_gen_andi_i32(t0, fpu_fcr31, 1 << get_fp_bit(cc)); tcg_gen_brcondi_i32(cond, t0, 0, l1); @@ -10797,10 +10854,11 @@ static inline void gen_movcf_ps(DisasContext *ctx= , int fs, int fd, TCGLabel *l1 =3D gen_new_label(); TCGLabel *l2 =3D gen_new_label(); =20 - if (tf) + if (tf) { cond =3D TCG_COND_EQ; - else + } else { cond =3D TCG_COND_NE; + } =20 tcg_gen_andi_i32(t0, fpu_fcr31, 1 << get_fp_bit(cc)); tcg_gen_brcondi_i32(cond, t0, 0, l1); @@ -12096,8 +12154,9 @@ static void gen_farith(DisasContext *ctx, enum fopc= ode op1, TCGLabel *l1 =3D gen_new_label(); TCGv_i64 fp0; =20 - if (ft !=3D 0) + if (ft !=3D 0) { tcg_gen_brcondi_tl(TCG_COND_NE, cpu_gpr[ft], 0, l1); + } fp0 =3D tcg_temp_new_i64(); gen_load_fpr64(ctx, fp0, fs); gen_store_fpr64(ctx, fp0, fd); @@ -29991,12 +30050,14 @@ void mips_cpu_dump_state(CPUState *cs, FILE *f, i= nt flags) env->active_tc.PC, env->active_tc.HI[0], env->active_tc.L= O[0], env->hflags, env->btarget, env->bcond); for (i =3D 0; i < 32; i++) { - if ((i & 3) =3D=3D 0) + if ((i & 3) =3D=3D 0) { qemu_fprintf(f, "GPR%02d:", i); + } qemu_fprintf(f, " %s " TARGET_FMT_lx, regnames[i], env->active_tc.gpr[i]); - if ((i & 3) =3D=3D 3) + if ((i & 3) =3D=3D 3) { qemu_fprintf(f, "\n"); + } } =20 qemu_fprintf(f, "CP0 Status 0x%08x Cause 0x%08x EPC 0x" TARGET_F= MT_lx "\n", --=20 2.7.4