summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/arch/arch_amd64_state_autogen.go
blob: 7fe18338d5b5034e7f9a479587af9105d389c80b (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
30
31
32
33
34
35
36
37
38
39
40
41
// automatically generated by stateify.

// +build amd64
// +build amd64
// +build amd64

package arch

import (
	"gvisor.dev/gvisor/pkg/state"
)

func (c *context64) StateTypeName() string {
	return "pkg/sentry/arch.context64"
}

func (c *context64) StateFields() []string {
	return []string{
		"State",
		"sigFPState",
	}
}

func (c *context64) beforeSave() {}

func (c *context64) StateSave(stateSinkObject state.Sink) {
	c.beforeSave()
	stateSinkObject.Save(0, &c.State)
	stateSinkObject.Save(1, &c.sigFPState)
}

func (c *context64) afterLoad() {}

func (c *context64) StateLoad(stateSourceObject state.Source) {
	stateSourceObject.Load(0, &c.State)
	stateSourceObject.Load(1, &c.sigFPState)
}

func init() {
	state.Register((*context64)(nil))
}