[Lldb-commits] [lldb] c51a896 - [lldb][AArch64][Linux] Fix HWCAP constant sizes when built on 32 bit

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Thu Nov 9 02:56:58 PST 2023


Author: David Spickett
Date: 2023-11-09T10:55:43Z
New Revision: c51a8968a410fb7cfc45acc9f86273ff1cb11736

URL: https://github.com/llvm/llvm-project/commit/c51a8968a410fb7cfc45acc9f86273ff1cb11736
DIFF: https://github.com/llvm/llvm-project/commit/c51a8968a410fb7cfc45acc9f86273ff1cb11736.diff

LOG: [lldb][AArch64][Linux] Fix HWCAP constant sizes when built on 32 bit

One of them is << 32 which means it must be a 64 bit value.

Fixes e3d750cc40e4cea281924142859dd4b9a6465f99.

Added: 
    

Modified: 
    lldb/source/Plugins/Process/Utility/RegisterFlagsLinux_arm64.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/Process/Utility/RegisterFlagsLinux_arm64.cpp b/lldb/source/Plugins/Process/Utility/RegisterFlagsLinux_arm64.cpp
index ba1a0d5599e7703..87f2464a9eb4868 100644
--- a/lldb/source/Plugins/Process/Utility/RegisterFlagsLinux_arm64.cpp
+++ b/lldb/source/Plugins/Process/Utility/RegisterFlagsLinux_arm64.cpp
@@ -12,15 +12,15 @@
 // This file is built on all systems because it is used by native processes and
 // core files, so we manually define the needed HWCAP values here.
 
-#define HWCAP_FPHP (1UL << 9)
-#define HWCAP_ASIMDHP (1UL << 10)
-#define HWCAP_DIT (1UL << 24)
-#define HWCAP_SSBS (1UL << 28)
-
-#define HWCAP2_BTI (1UL << 17)
-#define HWCAP2_MTE (1UL << 18)
-#define HWCAP2_AFP (1UL << 20)
-#define HWCAP2_EBF16 (1UL << 32)
+#define HWCAP_FPHP (1ULL << 9)
+#define HWCAP_ASIMDHP (1ULL << 10)
+#define HWCAP_DIT (1ULL << 24)
+#define HWCAP_SSBS (1ULL << 28)
+
+#define HWCAP2_BTI (1ULL << 17)
+#define HWCAP2_MTE (1ULL << 18)
+#define HWCAP2_AFP (1ULL << 20)
+#define HWCAP2_EBF16 (1ULL << 32)
 
 using namespace lldb_private;
 


        


More information about the lldb-commits mailing list