Fix nogo test error

Signed-off-by: Howard Zhang <howard.zhang@arm.com>
This commit is contained in:
Howard Zhang
2021-03-25 17:39:28 +08:00
parent c27fac421b
commit a01fc7108f
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -62,9 +62,10 @@ func LoadFloatingPoint(*byte)
// SaveFloatingPoint saves floating point state.
func SaveFloatingPoint(*byte)
// FPSIMDDisableTrap disables fpsimd.
func FPSIMDDisableTrap()
// DisableVFP disables fpsimd.
// FPSIMDEnableTrap enables fpsimd.
func FPSIMDEnableTrap()
// Init sets function pointers based on architectural features.
+2
View File
@@ -58,6 +58,8 @@ func (s *State) Fork() State {
}
// BytePointer returns a pointer to the first byte of the state.
//
//go:nosplit
func (s *State) BytePointer() *byte {
return &(*s)[0]
}