Skip to content

Commit c51a896

Browse files
committed
[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 e3d750c.
1 parent 06881d2 commit c51a896

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
// This file is built on all systems because it is used by native processes and
1313
// core files, so we manually define the needed HWCAP values here.
1414

15-
#define HWCAP_FPHP (1UL << 9)
16-
#define HWCAP_ASIMDHP (1UL << 10)
17-
#define HWCAP_DIT (1UL << 24)
18-
#define HWCAP_SSBS (1UL << 28)
19-
20-
#define HWCAP2_BTI (1UL << 17)
21-
#define HWCAP2_MTE (1UL << 18)
22-
#define HWCAP2_AFP (1UL << 20)
23-
#define HWCAP2_EBF16 (1UL << 32)
15+
#define HWCAP_FPHP (1ULL << 9)
16+
#define HWCAP_ASIMDHP (1ULL << 10)
17+
#define HWCAP_DIT (1ULL << 24)
18+
#define HWCAP_SSBS (1ULL << 28)
19+
20+
#define HWCAP2_BTI (1ULL << 17)
21+
#define HWCAP2_MTE (1ULL << 18)
22+
#define HWCAP2_AFP (1ULL << 20)
23+
#define HWCAP2_EBF16 (1ULL << 32)
2424

2525
using namespace lldb_private;
2626

0 commit comments

Comments
 (0)