diff --git a/lib/std/debug/cpu_context.zig b/lib/std/debug/cpu_context.zig index a1b530a9b19f2233e5f5efa9e3b2f408c52f703c..6f6a07a86ffc0a867da5534b440966e6f12451bc 100644 --- a/lib/std/debug/cpu_context.zig +++ b/lib/std/debug/cpu_context.zig @@ -350,7 +350,7 @@ const Alpha = extern struct { \\1: \\ stq $1, 0x100($0) : - : [ctx] "{r0}" (&ctx), + : [ctx] "{$0}" (&ctx), : .{ .r1 = true, .memory = true }); return ctx; } @@ -362,7 +362,7 @@ const Alpha = extern struct { return ctx.pc; } - pub fn dwarfRegisterBytes(ctx: *Aarch64, register_num: u16) DwarfRegisterError![]u8 { + pub fn dwarfRegisterBytes(ctx: *Alpha, register_num: u16) DwarfRegisterError![]u8 { switch (register_num) { 0...31 => return @ptrCast(&ctx.r[register_num]), 64 => return @ptrCast(&ctx.pc),