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.
This commit is contained in:
Michael Dusan
2023-08-15 17:20:04 -04:00
parent 25542c3443
commit bac3c2748f

View File

@@ -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]),