authorgravatar for michael.dusan@gmail.comMichael Dusan <michael.dusan@gmail.com> 2023-08-15 17:20:04-04:00
committergravatar for michael.dusan@gmail.comMichael Dusan <michael.dusan@gmail.com> 2023-08-15 17:26:39-04:00
logbac3c2748ff0a0222b5c7f4df13120f390f503f3
tree7aa65e53862027f0744e1ad0d6c114010173ebd4
parent25542c3443c616d0ef546e424619cf88553d9b59
signaturelock-open Commit is signed but in an unrecognized format.

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.

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

lib/std/dwarf/abi.zig+1-1
......@@ -229,7 +229,7 @@ pub fn regBytes(
229229 else => error.UnimplementedOs,
230230 },
231231 .x86_64 => switch (builtin.os.tag) {
232 .linux, .netbsd, .solaris => switch (reg_number) {
232 .linux, .solaris => switch (reg_number) {
233233 0 => mem.asBytes(&ucontext_ptr.mcontext.gregs[os.REG.RAX]),
234234 1 => mem.asBytes(&ucontext_ptr.mcontext.gregs[os.REG.RDX]),
235235 2 => mem.asBytes(&ucontext_ptr.mcontext.gregs[os.REG.RCX]),