[cpu] Rename cpu_id::validate() to cpu_id::features()

Validate wasn't a correct name anymore. Also move the features enum out
of the cpu_id class scope and into the `cpu` namespace directly.
This commit is contained in:
Justin C. Miller
2023-03-16 19:41:07 -07:00
parent 201e7191ef
commit bfab4f085e
6 changed files with 51 additions and 22 deletions

View File

@@ -34,10 +34,10 @@ cpu_id::cpu_id()
__cpuid(cpuid_extended, 0, &m_high_ext);
}
cpu_id::features
cpu_id::validate() const
features
cpu_id::features() const
{
cpu_id::features feats;
::cpu::features feats;
uint32_t leaf = -1u;
uint32_t sub = -1u;
regs r;