summaryrefslogtreecommitdiffhomepage
path: root/pkg/cpuid/cpuid_arm64_state_autogen.go
blob: 656b8d001fd02675827651319635367e9428dfdd (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 (f *FeatureSet) StateTypeName() string {
	return "pkg/cpuid.FeatureSet"
}

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

func (f *FeatureSet) beforeSave() {}

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

func (f *FeatureSet) afterLoad() {}

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

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