Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

AMD_SEV and other constants used in common code, but only defined for amd64 #21

Open

Description

@Jakob-Naucke

#18 introduced some constants, e.g. AMD_SEV, in cpuid_amd64.go, and then used them in cpuid.go. They will be undefined when building on non-x86_64 architectures.
e.g. on s390x:

$ go get github.com/intel-go/cpuid
# github.com/intel-go/cpuid
go/pkg/mod/github.com/intel-go/cpuid@v0.0.0-20210602155658-5747e5cec0d9/cpuid.go:291:2: undefined: AMD_SME
go/pkg/mod/github.com/intel-go/cpuid@v0.0.0-20210602155658-5747e5cec0d9/cpuid.go:292:2: undefined: AMD_SEV
go/pkg/mod/github.com/intel-go/cpuid@v0.0.0-20210602155658-5747e5cec0d9/cpuid.go:293:2: undefined: AMD_PAGE_FLUSH_MSR
go/pkg/mod/github.com/intel-go/cpuid@v0.0.0-20210602155658-5747e5cec0d9/cpuid.go:294:2: undefined: AMD_SEV_ES

/cc @jimcadden

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions