authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-08-09 05:20:13+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-08-09 17:53:04+02:00
log19de614e9d69c44c8b8bf94b4a941740cb4e228a
tree3b38209b1d8b0df1013d2e0c7e62be64802b2208
parentf376cbc37b38794857e63bffc3766ad5cb8482c2
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.debug.cpu_context.Ve: simplify getting ic in current assembly

Turns out the architecture has an instruction that just... gives you the ic. Revolutionary!

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

lib/std/debug/cpu_context.zig+2-3
......@@ -1700,9 +1700,8 @@ const Ve = extern struct {
17001700 \\ st %%s61, 488(, %%s8)
17011701 \\ st %%s62, 496(, %%s8)
17021702 \\ st %%s63, 504(, %%s8)
1703 \\ br.l 1f
1704 \\1:
1705 \\ st %%lr, 512(, %%s8)
1703 \\ sic %%s10
1704 \\ st %%s10, 512(, %%s8)
17061705 :
17071706 : [ctx] "{s8}" (&ctx),
17081707 : .{ .s10 = true, .memory = true });