summaryrefslogtreecommitdiffhomepage
path: root/pkg/cpuid/cpuid_arm64_state_autogen.go
blob: 50e3179632aa7e37bc0aaae42eac1e2924535869 (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
52
53
// automatically generated by stateify.

// +build arm64

package cpuid

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

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

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

func (fs *FeatureSet) beforeSave() {}

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

func (fs *FeatureSet) afterLoad() {}

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

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