summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/arch/arch_x86.go
diff options
context:
space:
mode:
authorBrad Burlage <brb@google.com>2020-02-10 11:57:31 -0800
committergVisor bot <gvisor-bot@google.com>2020-02-10 12:00:46 -0800
commit20840bfec087d45853e81d1ac34940f3b2fb920a (patch)
tree5caa60e83f876732189bc5e394c4079fae0edd20 /pkg/sentry/arch/arch_x86.go
parent0efa8168c7c04ec0a4bd62e2d2eb8718b5d72ea7 (diff)
Move x86 state definition to its own file.
PiperOrigin-RevId: 294271541
Diffstat (limited to 'pkg/sentry/arch/arch_x86.go')
-rw-r--r--pkg/sentry/arch/arch_x86.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/pkg/sentry/arch/arch_x86.go b/pkg/sentry/arch/arch_x86.go
index 3db8bd34b..88b40a9d1 100644
--- a/pkg/sentry/arch/arch_x86.go
+++ b/pkg/sentry/arch/arch_x86.go
@@ -155,21 +155,6 @@ func NewFloatingPointData() *FloatingPointData {
return (*FloatingPointData)(&(newX86FPState()[0]))
}
-// State contains the common architecture bits for X86 (the build tag of this
-// file ensures it's only built on x86).
-//
-// +stateify savable
-type State struct {
- // The system registers.
- Regs syscall.PtraceRegs `state:".(syscallPtraceRegs)"`
-
- // Our floating point state.
- x86FPState `state:"wait"`
-
- // FeatureSet is a pointer to the currently active feature set.
- FeatureSet *cpuid.FeatureSet
-}
-
// Proto returns a protobuf representation of the system registers in State.
func (s State) Proto() *rpb.Registers {
regs := &rpb.AMD64Registers{