From 19de614e9d69c44c8b8bf94b4a941740cb4e228a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Sun, 9 Aug 2026 05:20:13 +0200 Subject: [PATCH] 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! --- lib/std/debug/cpu_context.zig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/std/debug/cpu_context.zig b/lib/std/debug/cpu_context.zig index 578f840f8cb60a86a90b4f12d9e8c1c32bc0d335..7b8ddaba805e31cd7877a517a6844a94ee2c3f34 100644 --- a/lib/std/debug/cpu_context.zig +++ b/lib/std/debug/cpu_context.zig @@ -1700,9 +1700,8 @@ const Ve = extern struct { \\ st %%s61, 488(, %%s8) \\ st %%s62, 496(, %%s8) \\ st %%s63, 504(, %%s8) - \\ br.l 1f - \\1: - \\ st %%lr, 512(, %%s8) + \\ sic %%s10 + \\ st %%s10, 512(, %%s8) : : [ctx] "{s8}" (&ctx), : .{ .s10 = true, .memory = true }); -- 2.54.0