From bac3c2748ff0a0222b5c7f4df13120f390f503f3 Mon Sep 17 00:00:00 2001 From: Michael Dusan Date: Tue, 15 Aug 2023 17:20:04 -0400 Subject: [PATCH] netbsd: std.dwarf.abi: disable x86_64 regBytes() We do not yet have correct implementation to access xmm registers from the world of ucontext/mcontext. Unimplement .netbsd to allow building zig compiler. --- lib/std/dwarf/abi.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/dwarf/abi.zig b/lib/std/dwarf/abi.zig index 9a1385ba6f..b097fd8b15 100644 --- a/lib/std/dwarf/abi.zig +++ b/lib/std/dwarf/abi.zig @@ -229,7 +229,7 @@ pub fn regBytes( else => error.UnimplementedOs, }, .x86_64 => switch (builtin.os.tag) { - .linux, .netbsd, .solaris => switch (reg_number) { + .linux, .solaris => switch (reg_number) { 0 => mem.asBytes(&ucontext_ptr.mcontext.gregs[os.REG.RAX]), 1 => mem.asBytes(&ucontext_ptr.mcontext.gregs[os.REG.RDX]), 2 => mem.asBytes(&ucontext_ptr.mcontext.gregs[os.REG.RCX]),