summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/arch
diff options
context:
space:
mode:
authorHoward Zhang <howard.zhang@arm.com>2021-03-25 17:06:44 +0800
committerHoward Zhang <howard.zhang@arm.com>2021-03-25 17:39:28 +0800
commita01fc7108f68b6e5098f97f837f7f7b91edf91df (patch)
tree9ea10c495ae171abbabd3da7cf3ea2bbff8f98eb /pkg/sentry/arch
parentc27fac421b760e62a8becf5d2c53ddbdf4ae5a4c (diff)
Fix nogo test error
Signed-off-by: Howard Zhang <howard.zhang@arm.com>
Diffstat (limited to 'pkg/sentry/arch')
-rw-r--r--pkg/sentry/arch/fpu/fpu_arm64.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/sentry/arch/fpu/fpu_arm64.go b/pkg/sentry/arch/fpu/fpu_arm64.go
index d2f62631d..46634661f 100644
--- a/pkg/sentry/arch/fpu/fpu_arm64.go
+++ b/pkg/sentry/arch/fpu/fpu_arm64.go
@@ -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]
}