Blame SOURCES/6c4f7462b3004e39e82c4ec186175ea4a56035b4.patch
|
Pablo Greco |
af6e25 |
From 6c4f7462b3004e39e82c4ec186175ea4a56035b4 Mon Sep 17 00:00:00 2001
|
|
Pablo Greco |
af6e25 |
From: Jaroslav Rohel <jrohel@redhat.com>
|
|
Pablo Greco |
af6e25 |
Date: Fri, 9 Aug 2019 09:54:49 +0200
|
|
Pablo Greco |
af6e25 |
Subject: [PATCH] hy_detect_arch(): detect crypto only on arm version >= 8
|
|
Pablo Greco |
af6e25 |
|
|
Pablo Greco |
af6e25 |
Before patch:
|
|
Pablo Greco |
af6e25 |
It detected armv7 with crypto extension on some "qemu-arm"
|
|
Pablo Greco |
af6e25 |
configurations. New architecture string "armv7hcnl" was generated.
|
|
Pablo Greco |
af6e25 |
|
|
Pablo Greco |
af6e25 |
After patch:
|
|
Pablo Greco |
af6e25 |
It detect crypto extension only if arm version >= 8.
|
|
Pablo Greco |
af6e25 |
|
|
Pablo Greco |
af6e25 |
https://bugzilla.redhat.com/show_bug.cgi?id=1691430
|
|
Pablo Greco |
af6e25 |
|
|
Pablo Greco |
af6e25 |
Closes: #771
|
|
Pablo Greco |
af6e25 |
Approved by: dmach
|
|
Pablo Greco |
af6e25 |
---
|
|
Pablo Greco |
af6e25 |
libdnf/hy-util.cpp | 3 ++-
|
|
Pablo Greco |
af6e25 |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
Pablo Greco |
af6e25 |
|
|
Pablo Greco |
af6e25 |
diff --git a/libdnf/hy-util.cpp b/libdnf/hy-util.cpp
|
|
Pablo Greco |
af6e25 |
index 61838cc36..f6de87d33 100644
|
|
Pablo Greco |
af6e25 |
--- a/libdnf/hy-util.cpp
|
|
Pablo Greco |
af6e25 |
+++ b/libdnf/hy-util.cpp
|
|
Pablo Greco |
af6e25 |
@@ -118,7 +118,8 @@ hy_detect_arch(char **arch)
|
|
Pablo Greco |
af6e25 |
modifier++;
|
|
Pablo Greco |
af6e25 |
if (getauxval(AT_HWCAP) & HWCAP_ARM_VFP)
|
|
Pablo Greco |
af6e25 |
*modifier++ = 'h';
|
|
Pablo Greco |
af6e25 |
- if (getauxval(AT_HWCAP2) & HWCAP2_AES)
|
|
Pablo Greco |
af6e25 |
+ // arm version >= 8 can have crypto extension
|
|
Pablo Greco |
af6e25 |
+ if ((atoi(un.machine+4) >= 8) && (getauxval(AT_HWCAP2) & HWCAP2_AES))
|
|
Pablo Greco |
af6e25 |
*modifier++ = 'c';
|
|
Pablo Greco |
af6e25 |
if (getauxval(AT_HWCAP) & HWCAP_ARM_NEON)
|
|
Pablo Greco |
af6e25 |
*modifier++ = 'n';
|