Skip to content

Commit 0cf6714

Browse files
committed
[lldb][AArch64] Fix GCS register field detection
Fixes c5840cc. On platforms where UL is 32 bit, like Windows or 32 bit Linux, this shift was not correct, so we assumed GCS was not present. Use ULL instead, to match the other HWCAP constants.
1 parent 1d5fbe8 commit 0cf6714

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/Process/Utility/RegisterFlagsDetector_arm64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#define HWCAP_ASIMDHP (1ULL << 10)
1818
#define HWCAP_DIT (1ULL << 24)
1919
#define HWCAP_SSBS (1ULL << 28)
20-
#define HWCAP_GCS (1UL << 32)
20+
#define HWCAP_GCS (1ULL << 32)
2121

2222
#define HWCAP2_BTI (1ULL << 17)
2323
#define HWCAP2_MTE (1ULL << 18)

0 commit comments

Comments
 (0)