From 56a9a13976ad800a8a34b194d35f0169d0a0bb23 Mon Sep 17 00:00:00 2001 From: Andrei Vagin Date: Tue, 23 Mar 2021 18:44:38 -0700 Subject: Move the code that manages floating-point state to a separate package This change is inspired by Adin's cl/355256448. PiperOrigin-RevId: 364695931 --- pkg/sentry/platform/kvm/context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/sentry/platform/kvm/context.go') diff --git a/pkg/sentry/platform/kvm/context.go b/pkg/sentry/platform/kvm/context.go index aeae01dbd..706fa53dc 100644 --- a/pkg/sentry/platform/kvm/context.go +++ b/pkg/sentry/platform/kvm/context.go @@ -65,7 +65,7 @@ func (c *context) Switch(ctx pkgcontext.Context, mm platform.MemoryManager, ac a // Prepare switch options. switchOpts := ring0.SwitchOpts{ Registers: &ac.StateData().Regs, - FloatingPointState: (*byte)(ac.FloatingPointData()), + FloatingPointState: ac.FloatingPointData(), PageTables: localAS.pageTables, Flush: localAS.Touch(cpu), FullRestore: ac.FullRestore(), -- cgit v1.2.3