Skip to content

Commit 68046e4

Browse files
arichardsonresistor
authored andcommitted
[libunwind] Fix Morello build
Can't use the MTE inline assembly when building for purecap Morello
1 parent 27b7a87 commit 68046e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libunwind/src/DwarfInstructions.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ int DwarfInstructions<A, R>::stepWithDwarf(A &addressSpace, pc_t pc,
288288
// __unw_step_stage2 is not used for cross unwinding, so we use
289289
// __aarch64__ rather than LIBUNWIND_TARGET_AARCH64 to make sure we are
290290
// building for AArch64 natively.
291-
#if defined(__aarch64__)
291+
#if defined(__aarch64__) && !defined(__CHERI_PURE_CAPABILITY__)
292292
if (stage2 && cieInfo.mteTaggedFrame) {
293293
pint_t sp = registers.getSP();
294294
pint_t p = sp;

0 commit comments

Comments
 (0)