blob: 8b567801fc602071d23fb76789f70834d1556ef8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// automatically generated by stateify.
// +build amd64 i386
package arch
import (
"gvisor.dev/gvisor/pkg/state"
)
func (x *State) beforeSave() {}
func (x *State) save(m state.Map) {
x.beforeSave()
var Regs syscallPtraceRegs = x.saveRegs()
m.SaveValue("Regs", Regs)
m.Save("x86FPState", &x.x86FPState)
m.Save("FeatureSet", &x.FeatureSet)
}
func (x *State) load(m state.Map) {
m.LoadWait("x86FPState", &x.x86FPState)
m.Load("FeatureSet", &x.FeatureSet)
m.LoadValue("Regs", new(syscallPtraceRegs), func(y interface{}) { x.loadRegs(y.(syscallPtraceRegs)) })
m.AfterLoad(x.afterLoad)
}
func init() {
state.Register("pkg/sentry/arch.State", (*State)(nil), state.Fns{Save: (*State).save, Load: (*State).load})
}
|