diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-02-10 20:03:09 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-02-10 20:03:09 +0000 |
commit | 67f39205e6c7f53c1c8a54949582ddba4fe0b5ea (patch) | |
tree | 74f42d2a12d81fe33febbc290bb3139312656e4f /pkg/sentry/arch/arch_state_autogen.go | |
parent | b5f9846d3e3c7e4bdf02a94bc1514d1a8fa240dd (diff) | |
parent | 20840bfec087d45853e81d1ac34940f3b2fb920a (diff) |
Merge release-20200127.0-107-g20840bf (automated)
Diffstat (limited to 'pkg/sentry/arch/arch_state_autogen.go')
-rwxr-xr-x | pkg/sentry/arch/arch_state_autogen.go | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/pkg/sentry/arch/arch_state_autogen.go b/pkg/sentry/arch/arch_state_autogen.go index 3381f26c8..c65504a49 100755 --- a/pkg/sentry/arch/arch_state_autogen.go +++ b/pkg/sentry/arch/arch_state_autogen.go @@ -94,22 +94,6 @@ func (x *syscallPtraceRegs) load(m state.Map) { m.Load("Gs", &x.Gs) } -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 (x *AuxEntry) beforeSave() {} func (x *AuxEntry) save(m state.Map) { x.beforeSave() @@ -175,7 +159,6 @@ func (x *SignalInfo) load(m state.Map) { func init() { state.Register("arch.MmapLayout", (*MmapLayout)(nil), state.Fns{Save: (*MmapLayout).save, Load: (*MmapLayout).load}) state.Register("arch.syscallPtraceRegs", (*syscallPtraceRegs)(nil), state.Fns{Save: (*syscallPtraceRegs).save, Load: (*syscallPtraceRegs).load}) - state.Register("arch.State", (*State)(nil), state.Fns{Save: (*State).save, Load: (*State).load}) state.Register("arch.AuxEntry", (*AuxEntry)(nil), state.Fns{Save: (*AuxEntry).save, Load: (*AuxEntry).load}) state.Register("arch.SignalAct", (*SignalAct)(nil), state.Fns{Save: (*SignalAct).save, Load: (*SignalAct).load}) state.Register("arch.SignalStack", (*SignalStack)(nil), state.Fns{Save: (*SignalStack).save, Load: (*SignalStack).load}) |