Return-Path: Received: from kernel.crashing.org (kernel.crashing.org [76.164.61.194]) by mail.openembedded.org (Postfix) with ESMTP id EF91F60BCF for ; Fri, 31 Jan 2020 23:24:47 +0000 (UTC) Received: from Marks-MacBook-Pro-16.local ([76.164.61.198]) (authenticated bits=0) by kernel.crashing.org (8.14.7/8.14.7) with ESMTP id 00VNOdnh018939 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Fri, 31 Jan 2020 17:24:48 -0600 From: Mark Hatle To: openembedded-core@lists.openembedded.org References: <20200131232331.117030-1-mark.hatle@kernel.crashing.org> Message-ID: <8a6d8fa8-18ff-742b-a144-db79a304c33f@kernel.crashing.org> Date: Fri, 31 Jan 2020 17:24:39 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: <20200131232331.117030-1-mark.hatle@kernel.crashing.org> Subject: Re: [PATCH 1/2] microblaze tune: Enable 64-bit X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Jan 2020 23:24:48 -0000 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit This is the wrong one, sorry, I'll resend a proper v2. (I swear I checked this 4 times before sending and STILL sent the wrong one!) --Mark On 1/31/20 5:23 PM, Mark Hatle wrote: > From: Mark Hatle > > 64-bit is not yet available in Linux, but some non-Linux uses exist. > > Signed-off-by: Mark Hatle > Signed-off-by: Mark Hatle > --- > meta/conf/machine/include/microblaze/arch-microblaze.inc | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > > diff --git a/meta/conf/machine/include/microblaze/arch-microblaze.inc b/meta/conf/machine/include/microblaze/arch-microblaze.inc > index 265898b6b6..55ce158f12 100644 > --- a/meta/conf/machine/include/microblaze/arch-microblaze.inc > +++ b/meta/conf/machine/include/microblaze/arch-microblaze.inc > @@ -4,6 +4,9 @@ > TUNEVALID[microblaze] = "MicroBlaze" > MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "microblaze", "microblaze:", "", d)}" > > +TUNEVALID[64-bit] = "64-bit MicroBlaze" > +MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "64-bit", "microblaze64:", "", d)}" > + > # Endian > TUNEVALID[bigendian] = "Use Microblaze Big Endian" > TUNECONFLICTS[bigendian] += "v10.0" > @@ -26,6 +29,7 @@ TUNECONFLICTS[frequency-optimized] += "v8.00 v8.10 v8.20 v8.30 v8.40 v8.50 v9.0 > TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "barrel-shift", "-mxl-barrel-shift", "-mno-xl-barrel-shift", d)}" > TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "pattern-compare", "-mxl-pattern-compare", "-mno-xl-pattern-compare", d)}" > TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "frequency-optimized", "-mxl-frequency", "", d)}" > +TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "microblaze64", "-m64", "", d)}" > > # Disable reorder for v8.30 if pattern-compare is not enabled > TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "reorder", \ > @@ -48,6 +52,9 @@ require conf/machine/include/microblaze/feature-microblaze-math.inc > # Architecture name, either 'microblazeeb' or 'microblazeel' depending on endianess > TUNE_ARCH = "microblaze${@bb.utils.contains("TUNE_FEATURES", "bigendian", "", "el", d)}" > > +# Add 64-bit to the PKGARCH if enabled. > +MBPKGARCH_SIZE = "${@bb.utils.contains("TUNE_FEATURES", "64-bit", "64", "", d)}" > + > # Package Architecture formatting > -TUNE_PKGARCH = "microblaze${MBPKGARCH_ENDIAN}${MBPKGARCH_VERSION}${MBPKGARCH_TUNE}${MBPKGARCH_MATH}" > +TUNE_PKGARCH = "microblaze${MBPKGARCH_SIZE}${MBPKGARCH_ENDIAN}${MBPKGARCH_VERSION}${MBPKGARCH_TUNE}${MBPKGARCH_MATH}" > >