From nobody Mon Feb 9 23:40:43 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=amsat.org ARC-Seal: i=1; a=rsa-sha256; t=1610058446; cv=none; d=zohomail.com; s=zohoarc; b=gASWNaiHdYb5RCXZ+C3NexzHDz/yKqxjn0TNh7fIONUUIppOhIrKtQOuLfsofQl355lnINDIH5UCx/uXvHb9MrAKz9uCr8xayrE4i//Mo1/aUV2kuZbJliJuED3zaU42ocXy846BLGay76a/nNj1YrZK8AiqXKH4oZha2Emas0U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1610058446; 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; bh=lwE+1tMMYcVefJ6sciUgu2/141uGXgmmBukddjUxPuE=; b=lDLiYwVVd2iqNzbsVP0kKykmhoKEgH5YA0CnGzHj2lXEhcIzuHwzbbsQOV2C9PfHD0+OgZ039gp9pA4zM8+JUorMZJo7vOqxYc8s6XVw42wdPqBYL2RuCsmFQY9EKvKlHeXGncrDrDTKeW+g2TNmigeP6ip8f0DFTnDIxsKObaE= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1610058446778929.6441055914578; Thu, 7 Jan 2021 14:27:26 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-401-do_ktx3MNhS06TBo0_ppOA-1; Thu, 07 Jan 2021 17:27:23 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 30D95803621; Thu, 7 Jan 2021 22:27:17 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 052B419C66; Thu, 7 Jan 2021 22:27:17 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id C2BC31809CA2; Thu, 7 Jan 2021 22:27:16 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 107MRFsb031325 for ; Thu, 7 Jan 2021 17:27:15 -0500 Received: by smtp.corp.redhat.com (Postfix) id 025F91018CBD; Thu, 7 Jan 2021 22:27:15 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast01.extmail.prod.ext.rdu2.redhat.com [10.11.55.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F2C361016D9C for ; Thu, 7 Jan 2021 22:27:14 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E06E9858284 for ; Thu, 7 Jan 2021 22:27:14 +0000 (UTC) Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-428-sVxRi-R0PpqNH_tN8y6_Sw-1; Thu, 07 Jan 2021 17:27:10 -0500 Received: by mail-wm1-f45.google.com with SMTP id y23so6841054wmi.1; Thu, 07 Jan 2021 14:27:09 -0800 (PST) Received: from x1w.redhat.com (241.red-88-10-103.dynamicip.rima-tde.net. [88.10.103.241]) by smtp.gmail.com with ESMTPSA id j7sm9627579wmb.40.2021.01.07.14.27.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jan 2021 14:27:08 -0800 (PST) X-MC-Unique: do_ktx3MNhS06TBo0_ppOA-1 X-MC-Unique: sVxRi-R0PpqNH_tN8y6_Sw-1 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=lwE+1tMMYcVefJ6sciUgu2/141uGXgmmBukddjUxPuE=; b=c0JagLQL23n41oyQOA3BLos3Ro2iMN9iiobOHAV9pPdRGOhtP1kHOh3oTPfUqLfGM9 fYq4Gwo5rBztWBRipjNB/QjbkDOQoGA4gZrQrozGAGuy2oVFNxqiDSad63+EsceD0eYl BfzhtMtWiKuzOzdAbskShJ8eE6wICjg1WvXKWDz/1x/RkPxJ6lGkzV+9VX74bpqy4KS3 GLx+uogS0exP2JJ0FqUorrIhsvDQtFIIHf5n648LSQtKSLMueba+Dx8UsL8q3hu4WSRc ylBJGmGtg/zqyfAz8MT+GnkM4CYPvffqbMq/08Pt4jNAIxzR+mC8mSIDZdZJrR7CE74s MJmA== X-Gm-Message-State: AOAM532vM1pBVmlN6aeYM95ARz8AZgq5hAX0FvyeAcXvMJKgBVjIlpfD nodyFuJjTLJPQiWuINAmwq4= X-Google-Smtp-Source: ABdhPJyuhUKSjnxmzTAuIU1deebNQKXXaS14b97GAjx9A7kMfekrdrz6IK3CUxsMt03XGVdSqoRC8g== X-Received: by 2002:a05:600c:cc:: with SMTP id u12mr547735wmm.42.1610058428920; Thu, 07 Jan 2021 14:27:08 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 49/66] target/mips: Declare gen_msa/_branch() in 'translate.h' Date: Thu, 7 Jan 2021 23:22:36 +0100 Message-Id: <20210107222253.20382-50-f4bug@amsat.org> In-Reply-To: <20210107222253.20382-1-f4bug@amsat.org> References: <20210107222253.20382-1-f4bug@amsat.org> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-loop: libvir-list@redhat.com Cc: Aleksandar Rikalo , Paul Burton , kvm@vger.kernel.org, libvir-list@redhat.com, Huacai Chen , Richard Henderson , Laurent Vivier , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Paolo Bonzini , Aurelien Jarno X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 Message-Id: <20201215225757.764263-18-f4bug@amsat.org> Tested-by: Jiaxun Yang --- 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 b9cd315c7f4..c61c11978c2 100644 --- a/target/mips/translate.h +++ b/target/mips/translate.h @@ -164,5 +164,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 0e7b2abe8bb..e1763e5bcec 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