[OE-core] [PATCH v2 1/2] microblaze tune: Enable 64-bit

Mark Hatle mark.hatle at kernel.crashing.org
Mon Feb 3 18:36:04 UTC 2020



On 1/31/20 10:50 PM, Nathan Rossi wrote:
> On Sat, 1 Feb 2020 at 09:33, Mark Hatle <mark.hatle at kernel.crashing.org> wrote:
>>
>> From: Mark Hatle <mark.hatle at xilinx.com>
>>
>> 64-bit is not yet available in Linux, but some non-Linux uses exist.
>>
>> Signed-off-by: Mark Hatle <mark.hatle at xilinx.com>
>> Signed-off-by: Mark Hatle <mark.hatle at kernel.crashing.org>
>> ---
>>  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..fb777d929c 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)}"
> 
> This should probably TUNECONFLICTS with all unsupported versions.

I have no information on what versions are unsupported with 64-bit.  If I
receive that information, I will add it as conflicts.

--Mark

> Regards,
> Nathan
> 
> 
>> +
>>  # 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", "64-bit", "-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}"
>>
>> --
>> 2.17.1
>>
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core at lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core


More information about the Openembedded-core mailing list