From nobody Tue Nov 18 01:24:07 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.208.68 as permitted sender) client-ip=209.85.208.68; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-ed1-f68.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.208.68 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1606934676; cv=none; d=zohomail.com; s=zohoarc; b=g+xLlkiJca8JEfnCuSQkn8Uc/ep4tvukRIxnVQefLGOhXaqidI6xM3XlBRiysJJKWv9FsIHz8Dh2hG956HbjWRw5lX/qsyuJN1lBwy+r23ZEu+xqGofAzdKnK0f/if7gmXhshdYGPK48dpbcP/79QeQ0oEYN2IFldWfotDWNPA0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1606934676; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=b+Fxow+oEWbA9tjXcJhsn1mux7Y5BxnpxnFopCv/eKM=; b=c5sxCdlZ/rxbzjK7RdL055pBpUOKanfcOWcuN+DVoau1ZKLCbRBLMC3IF9NfrNwDVZ1QNcWGKFGzUZF6FUwjIvk4RaBbA9AxrxalQCCbHcouOWzdrfmSFJHkZYIY+7FRe0bXhX/hkrYiiqnqfhJfC0mbP2BS6SK4muwjot/9KiE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.208.68 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-ed1-f68.google.com (mail-ed1-f68.google.com [209.85.208.68]) by mx.zohomail.com with SMTPS id 1606934676027349.79383322825936; Wed, 2 Dec 2020 10:44:36 -0800 (PST) Received: by mail-ed1-f68.google.com with SMTP id cw27so1071227edb.5 for ; Wed, 02 Dec 2020 10:44:35 -0800 (PST) Return-Path: Return-Path: Received: from x1w.redhat.com (111.red-88-21-205.staticip.rima-tde.net. [88.21.205.111]) by smtp.gmail.com with ESMTPSA id e20sm538625edu.25.2020.12.02.10.44.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2020 10:44:33 -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=b+Fxow+oEWbA9tjXcJhsn1mux7Y5BxnpxnFopCv/eKM=; b=cSkNktiztvfwPcj9TDhtlpU0QAlBiEme6zG8hSJcre7bL/ueRjM25Ez9ZSMsY/dFRv 2eD864BfOuCJXrIj8nWLQUsg1zQKecHrC5QwDVcrSPmkDFOqN3YLVJnmlIk0U7xSc6aM aRNISKDggqfYo8TUHXgY4EvUeUw3hFs1H2D9OdMsWI9I7e7x29y72rBUR7uKysbY1JUr S37URkEsXMr48P1xKmcrAlDlL55Ap0jN+6ZlPl+N7vDWZq8nZXo1lSVWntkRePN9180X E9is08RpfODNm40dc1a1EMQ3z8hRzd0JlgWhO6sV0WMQONg4tlQCEq4hqJMlR8Dn359B Iq8w== 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=b+Fxow+oEWbA9tjXcJhsn1mux7Y5BxnpxnFopCv/eKM=; b=k/AuJ/PpbXWJJfN8ajHjYwryHnDQF7PKxwIq8kHypSAG0yEIq+vrQaFGL/71A2dgQT soaKJz8q2SKggfFfedXYhErhNTVvoDwxNLs1euqWo7vuUJvL4iI9SYpakzitcLo/vzIq UgRmaxAd1+flu6vWBLyjwQRyMe9rwDRwmOCyVPiPb1rNyo3Tw1RjcuFVKdX/ZNTLSeuE lAiUo3TGqCV2t/KnhZMQaQjLdIHtfwz6P4EDsOwPhe0Vnq+e0DHzLwx2DeFdspX9F40O OEQS9yywMWLeEIRbRVuyuOVtckGd2VlKMimsW8wBoKn/tDBLDyO9TH94v5dp0Jp5Mwsf S0PQ== X-Gm-Message-State: AOAM532+p70tM2u7tkCbFvB0KnhVtPfbNgOhcEl7IZVN/jNYP1JgVRMb p1JnTofvPU6G35yeGAYJCm0= X-Google-Smtp-Source: ABdhPJzyBCo/fleK9MKte6zyYGXYyVa/HiaUOmGcqj9QDuopKYgN6NjtRhKkEgMnlAYPgNx6fS7OEA== X-Received: by 2002:aa7:dccd:: with SMTP id w13mr1277839edu.385.1606934674152; Wed, 02 Dec 2020 10:44:34 -0800 (PST) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Jiaxun Yang , Huacai Chen , Richard Henderson , kvm@vger.kernel.org, Aleksandar Rikalo , Paolo Bonzini , Aurelien Jarno , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 3/9] target/mips: Use CP0_Config3 to set MIPS_HFLAG_MSA Date: Wed, 2 Dec 2020 19:44:09 +0100 Message-Id: <20201202184415.1434484-4-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201202184415.1434484-1-f4bug@amsat.org> References: <20201202184415.1434484-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) MSA presence is expressed by the MSAP bit of CP0_Config3. We don't need to check anything else. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- target/mips/internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/mips/internal.h b/target/mips/internal.h index f882ac1580c..95cbd314018 100644 --- a/target/mips/internal.h +++ b/target/mips/internal.h @@ -433,7 +433,7 @@ static inline void compute_hflags(CPUMIPSState *env) env->hflags |=3D MIPS_HFLAG_COP1X; } } - if (env->insn_flags & ASE_MSA) { + if (ase_msa_available(env)) { if (env->CP0_Config5 & (1 << CP0C5_MSAEn)) { env->hflags |=3D MIPS_HFLAG_MSA; } --=20 2.26.2