summaryrefslogtreecommitdiffhomepage
path: root/pkg/cpuid/cpuid_arm64_state_autogen.go
blob: 10569802c0e0fb0a7a82b115454984120db5f9d1 (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
42
43
44
45
46
47
48
49
50
51
// automatically generated by stateify.

// +build arm64

package cpuid

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

func (x *FeatureSet) StateTypeName() string {
	return "pkg/cpuid.FeatureSet"
}

func (x *FeatureSet) StateFields() []string {
	return []string{
		"Set",
		"CPUImplementer",
		"CPUArchitecture",
		"CPUVariant",
		"CPUPartnum",
		"CPURevision",
	}
}

func (x *FeatureSet) beforeSave() {}

func (x *FeatureSet) StateSave(m state.Sink) {
	x.beforeSave()
	m.Save(0, &x.Set)
	m.Save(1, &x.CPUImplementer)
	m.Save(2, &x.CPUArchitecture)
	m.Save(3, &x.CPUVariant)
	m.Save(4, &x.CPUPartnum)
	m.Save(5, &x.CPURevision)
}

func (x *FeatureSet) afterLoad() {}

func (x *FeatureSet) StateLoad(m state.Source) {
	m.Load(0, &x.Set)
	m.Load(1, &x.CPUImplementer)
	m.Load(2, &x.CPUArchitecture)
	m.Load(3, &x.CPUVariant)
	m.Load(4, &x.CPUPartnum)
	m.Load(5, &x.CPURevision)
}

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