From nobody Mon May 08 00:57:38 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QF2vQ3D37z49p6L; Mon, 8 May 2023 00:57:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QF2vQ2g89z43qP; Mon, 8 May 2023 00:57:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683507458; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mOICYXoQn1gVnAq8++GGLEMSQwVTpvxs1+xgAMfztVk=; b=QYZsTlkErRwLdNoIIywL2QTEGw6KVSmT4HB9cKkVI4iDSwbtE870gz1hqWg7c2bEch7tCx JQ//qaAcCjVKEm1+GBnfbrr6KnHOfqsJ7ATanmUZqYPGS6vQ3O/WElRIEPEz8QvnBD+bkH OYwu50IgHqTdIm3Pw+Wg0j+erqdkoxX8D9ACuDiC+XMPNJylXCLmPVCS9ZwkjPKuJzGUXl pA244chSE6AGnMLIVe7w2mY8/Ivc0ygvvXqM44HRu9lD9EX+vQDBASsGOvxeRlf4clAXLH RgBvPGAjcAWjln+L8pylu2XZHVWQXWdwNSZEP4Vo3vZkLYSu1eKaZUw6HKP3FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683507458; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mOICYXoQn1gVnAq8++GGLEMSQwVTpvxs1+xgAMfztVk=; b=G3l7RaambjXB+nkc4js39rn9S6KaOSj8Ty35AcVGiZvZqxiwhiWoytHqtgm/FJYfFf6ByY yQQ1vx0je4+A0AOMsUMIoAkKr8Y6MZbz/BXnNSko1572IEiniyiTxLkoSrUs4aPbWRNeJ3 Z2zy5OsPLieaMDO4jn3mBIBc02mTy4qpuzPVRzARNWpj4m9WP4w83Beh7lb2NAcHrrOGEi kpPy3h9EiKF2vYmXKDPKww77K5lihPKqRgmNiYNcqfwISkRRyPdi6DQifmi8+zXwJKq92e Q97vz04QOxVzvrfmrBNf9OWDsCvOUme60bGDSz1uok8Q9mINfHdOm/5YJEpJdg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683507458; a=rsa-sha256; cv=none; b=nQTdOHAO3lpdkDmJ4ruQlbQCxejTqqT059gfJ0kjRNzErknjFEVwjTU+e0cmGOGg4jdbkW me2hUYv8W9jJN+oepQ+qS3jGKJCms6nJS2qHnZN96iNgqQh2qOaM8zsLbBieNWIoEhjqW7 HyogpZYxFsa968JGBVJ2UIG8Azo1SwIC4XugghYl+GGmamElOARY/wyLZDoz8sjltSph8S pjSUiH3hxhCHBTvloSDNGKTywrLAqeNP5/8MmKBHKZG3xzDbrUYw60XdEiK5Bn5UD2na5M KqJt5PFJOTmGOf9kjOH1mihHkm9kBaxflzP1YE4IYjwGJExvybd873dKcltjoA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QF2vQ1jyDzgTY; Mon, 8 May 2023 00:57:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 3480vcqv004728; Mon, 8 May 2023 00:57:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 3480vcw5004727; Mon, 8 May 2023 00:57:38 GMT (envelope-from git) Date: Mon, 8 May 2023 00:57:38 GMT Message-Id: <202305080057.3480vcw5004727@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Piotr Kubaj Subject: git: f37a2ade7730 - stable/13 - share/mk/bsd.cpu.mk: add AltiVec / VSX to powerpc*'s MACHINE_CPU List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pkubaj X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: f37a2ade7730cfcdaf754a6b4b9201002ba46730 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by pkubaj: URL: https://cgit.FreeBSD.org/src/commit/?id=f37a2ade7730cfcdaf754a6b4b9201002ba46730 commit f37a2ade7730cfcdaf754a6b4b9201002ba46730 Author: Piotr Kubaj AuthorDate: 2023-05-05 14:19:19 +0000 Commit: Piotr Kubaj CommitDate: 2023-05-08 00:58:05 +0000 share/mk/bsd.cpu.mk: add AltiVec / VSX to powerpc*'s MACHINE_CPU MFC after: 3 days Approved by: jhibbits Differential revision: https://reviews.freebsd.org/D39240 (cherry picked from commit 448045e4a7873f4733cebda56df002acabb2aef1) --- share/mk/bsd.cpu.mk | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/share/mk/bsd.cpu.mk b/share/mk/bsd.cpu.mk index cc907d79d03e..ed8040d1c192 100644 --- a/share/mk/bsd.cpu.mk +++ b/share/mk/bsd.cpu.mk @@ -284,6 +284,25 @@ MACHINE_CPU = mips . elif ${MACHINE_ARCH} == "powerpc" . if ${CPUTYPE} == "e500" MACHINE_CPU = booke softfp +. elif ${CPUTYPE} == "g4" +MACHINE_CPU = altivec +. endif +. elif ${MACHINE_ARCH} == "powerpc64" +. if ${CPUTYPE} == "e5500" +MACHINE_CPU = booke +. elif ${CPUTYPE} == power7 +MACHINE_CPU = altivec vsx +. elif ${CPUTYPE} == power8 +MACHINE_CPU = altivec vsx vsx2 +. elif ${CPUTYPE} == power9 +MACHINE_CPU = altivec vsx vsx2 vsx3 +. else +MACHINE_CPU = altivec +. endif +. elif ${MACHINE_ARCH} == "powerpc64le" +MACHINE_CPU = altivec vsx vsx2 +. if ${CPUTYPE} == power9 +MACHINE_CPU += vsx3 . endif ########## riscv . elif ${MACHINE_CPUARCH} == "riscv"