misc/dive: unbreak on aarch64

Import an upstream patch [1] to fix build on aarch64

[1] 33540a1f60

PR:		243800
Approved by:	yuri (maintainer), manu (mentor)
This commit is contained in:
Mikael Urankar 2020-02-24 19:51:17 +00:00
parent a2e9a4cd20
commit 6d55d31313
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=527041

View file

@ -0,0 +1,24 @@
From 33540a1f603772f9d4b761f416f5c10dade23e96 Mon Sep 17 00:00:00 2001
From: Tobias Klauser <tklauser@distanz.ch>
Date: Fri, 25 Oct 2019 21:13:51 +0200
Subject: [PATCH] unix: don't use non-existing uint128 type on freebsd/arm64
CL 179099 introduced type FpReg on freebsd, on freebsd/arm64 using a
type uint128. This type doesn't exist in Go.
Change-Id: Ie7f065f38f2cc2c163abdfa7dddad886b8edbe3b
Reviewed-on: https://go-review.googlesource.com/c/sys/+/203419
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
--- vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go.orig 2019-08-18 13:42:05 UTC
+++ vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go
@@ -397,7 +397,7 @@ type Reg struct {
}
type FpReg struct {
- Fp_q [32]uint128
+ Fp_q [512]uint8
Fp_sr uint32
Fp_cr uint32
}