From nobody Mon Feb 9 18:18:29 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.218.68 as permitted sender) client-ip=209.85.218.68; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-ej1-f68.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.218.68 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1608073177; cv=none; d=zohomail.com; s=zohoarc; b=nRGLJNKoHRz+Z1AfpzTsCHcEFMaZmbwErtKnXBXhuYj2Xz0RMJ7KzmqIUQyBrptY8pw2lBq3y3rc5h0adIaVDeFyjZg/V8thogl9Eie/6fFXTZQePx2rPBtLEQC4ADAerz96yPCbX7mteG5f7vq5leZQ/7Bx2OrMAR4/v6CrjN4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1608073177; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=e0eQHnWDCrjwoYyD2yN62FwRsv+ZXJP/kwuNsrV3YJo=; b=YJXJJkZQOPYZ8xu2/NEnWxLANTfd/Bfw+JnKWJhfej8yjvS1/9aHbaat69w7K9LIrGMmc2+1X435/gyD7raw97EZYRE+0eh8zfaxSoN8zifVJJNKKmUMN3IE+RH8fZChr31PffUr12UD2NcNEAKA/2G0b5tzpY2GIRWv4QuIz0g= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.218.68 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-ej1-f68.google.com (mail-ej1-f68.google.com [209.85.218.68]) by mx.zohomail.com with SMTPS id 1608073177761916.869454832597; Tue, 15 Dec 2020 14:59:37 -0800 (PST) Received: by mail-ej1-f68.google.com with SMTP id d17so30059566ejy.9 for ; Tue, 15 Dec 2020 14:59:37 -0800 (PST) Return-Path: Return-Path: Received: from x1w.redhat.com (101.red-88-21-206.staticip.rima-tde.net. [88.21.206.101]) by smtp.gmail.com with ESMTPSA id s12sm19874597edu.28.2020.12.15.14.59.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Dec 2020 14:59:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=e0eQHnWDCrjwoYyD2yN62FwRsv+ZXJP/kwuNsrV3YJo=; b=F7NZPZDcUD7tQQF+lbqopiHIMiK0uojWbK5lxme/6/QwRVdisEFjXjK30abUTagZXW MAaXJ+db8S92MqrPy5QO3u0hGHbUFtwKXJ6BHpi1jNULSWpvzQ0IhCLIpD/iI5WxRxGM c+MlCtM3XmsTpdqXphE/Tj4bPAk90PXAZbGCnhtNHTMxiJ+k05G0I/kW49VCBccTMOLp 8/H0CXssXcWyuchAPMNZN0cdOujx5+0Kimv/iJ7Y8l78p60InnmSokUwR2aFXnOymFu9 Twpb+jiUkSxKSbi22WC5cz0yTqIF5KWGan9n9eFhwx6EM9mQPm4coPvCiskhjLIGrYOR gnOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=e0eQHnWDCrjwoYyD2yN62FwRsv+ZXJP/kwuNsrV3YJo=; b=Yt5SznnrM6ZJANCzHFYJGhsC1unpx+Iu7pmUxidkcLikGPE3EwfxHpYf1UTXx56MFg ATt9QrAPOd1OC9jxj+nwMbHSYiS5oGWFmYfBOXPMR8bCos6Qz+5EY5nvr+DU/ri+YiQa 5K99OLjPcYDsbIykldelzO2u2CZFKQlDX5wN71sPYml95aPRa7bCNjI09X0LMz2H0XC8 nKNZtgF9wFZJW+EbS2IETHE4lh91M5JmnjiwTJydd2CZNFBJ/XLotltA7vRxk9+hJDvj 55RcwLlibqE9oRFEZ6s2ldLYh6fDkwhnhE1GtePqiMiV1DP0cjww+awTlCxmeo7c9QRu QSBw== X-Gm-Message-State: AOAM531ncjWr+bCzlMIZ1qPd0R+t3hKCOx4FLXMljdehbWg/tUmSZEL0 jr9FlRExtM20megzwahufOo= X-Google-Smtp-Source: ABdhPJwPcNZNoZhcI0FGmQqk+wdxQUMkkCOBpxFi85HJfy6say6TGZ/z07taAzNCIIXoMUj0zpr8VA== X-Received: by 2002:a17:906:aeda:: with SMTP id me26mr3583681ejb.11.1608073175960; Tue, 15 Dec 2020 14:59:35 -0800 (PST) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Richard Henderson , qemu-devel@nongnu.org Cc: kvm@vger.kernel.org, Aleksandar Rikalo , Paolo Bonzini , Aurelien Jarno , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Huacai Chen Subject: [PATCH v2 17/24] target/mips: Declare gen_msa/_branch() in 'translate.h' Date: Tue, 15 Dec 2020 23:57:50 +0100 Message-Id: <20201215225757.764263-18-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201215225757.764263-1-f4bug@amsat.org> References: <20201215225757.764263-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) Make gen_msa() and gen_msa_branch() public declarations so we can keep calling them once extracted from the big translate.c in the next commit. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- target/mips/translate.h | 2 ++ target/mips/translate.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/target/mips/translate.h b/target/mips/translate.h index f7e7037bab8..77dfec98792 100644 --- a/target/mips/translate.h +++ b/target/mips/translate.h @@ -163,5 +163,7 @@ extern TCGv bcond; =20 /* MSA */ void msa_translate_init(void); +void gen_msa(DisasContext *ctx); +void gen_msa_branch(DisasContext *ctx, uint32_t op1); =20 #endif diff --git a/target/mips/translate.c b/target/mips/translate.c index 9be946256b3..20174c4aa57 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -28660,7 +28660,7 @@ static bool gen_msa_BxZ(DisasContext *ctx, int df, = int wt, int s16, bool if_not) return true; } =20 -static void gen_msa_branch(DisasContext *ctx, uint32_t op1) +void gen_msa_branch(DisasContext *ctx, uint32_t op1) { uint8_t df =3D (ctx->opcode >> 21) & 0x3; uint8_t wt =3D (ctx->opcode >> 16) & 0x1f; @@ -30436,7 +30436,7 @@ static void gen_msa_vec(DisasContext *ctx) } } =20 -static void gen_msa(DisasContext *ctx) +void gen_msa(DisasContext *ctx) { uint32_t opcode =3D ctx->opcode; =20 --=20 2.26.2