Skip to content

Commit c9d1dfb

Browse files
committed
[libunwind] Fix Morello build
Can't use the MTE inline assembly when building for purecap Morello
1 parent 6a7f99d commit c9d1dfb

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
@@ -269,7 +269,7 @@ int DwarfInstructions<A, R>::stepWithDwarf(A &addressSpace, pc_t pc,
269269
// __unw_step_stage2 is not used for cross unwinding, so we use
270270
// __aarch64__ rather than LIBUNWIND_TARGET_AARCH64 to make sure we are
271271
// building for AArch64 natively.
272-
#if defined(__aarch64__)
272+
#if defined(__aarch64__) && !defined(__CHERI_PURE_CAPABILITY__)
273273
if (stage2 && cieInfo.mteTaggedFrame) {
274274
pint_t sp = registers.getSP();
275275
pint_t p = sp;

0 commit comments

Comments
 (0)