diff --git a/lib/std/debug/cpu_context.zig b/lib/std/debug/cpu_context.zig index 5a4cfb32cef8bda3afa6c489dd1be1453b67769e..6cd81d2575b0366c5af3064d292070fdee039009 100644 --- a/lib/std/debug/cpu_context.zig +++ b/lib/std/debug/cpu_context.zig @@ -464,10 +464,11 @@ const Arm = struct { \\ stm r0, {r0-r12} \\ str r13, [r0, #0x34] \\ str r14, [r0, #0x38] - \\ str r15, [r0, #0x3c] + \\ mov r1, pc + \\ str r1, [r0, #0x3c] : : [r] "{r0}" (&ctx.r), - : .{ .memory = true }); + : .{ .r1 = true, .memory = true }); return ctx; }