authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-08-09 05:15:57+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-08-09 17:53:04+02:00
logd9e11f4f3143e5739c5444302d4e7f4701a86d61
treed880c3fb6ad32525115b4aaecdbe6154b0ba4649
parent39f0cf90e5f761187a67b88741efcf0049baa959
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.debug.cpu_context.Arm: make current assembly work in Thumb-1


1 files changed, 3 insertions(+), 2 deletions(-)

lib/std/debug/cpu_context.zig+3-2
...@@ -464,10 +464,11 @@ const Arm = struct {...@@ -464,10 +464,11 @@ const Arm = struct {
464 \\ stm r0, {r0-r12}464 \\ stm r0, {r0-r12}
465 \\ str r13, [r0, #0x34]465 \\ str r13, [r0, #0x34]
466 \\ str r14, [r0, #0x38]466 \\ str r14, [r0, #0x38]
467 \\ str r15, [r0, #0x3c]467 \\ mov r1, pc
468 \\ str r1, [r0, #0x3c]
468 :469 :
469 : [r] "{r0}" (&ctx.r),470 : [r] "{r0}" (&ctx.r),
470 : .{ .memory = true });471 : .{ .r1 = true, .memory = true });
471 return ctx;472 return ctx;
472 }473 }
473474