cpuid: defend against unknown architectures

This commit is contained in:
Danny Robson 2019-06-20 11:44:26 +10:00
parent 8fc182ca8e
commit 7cb0c8f6d8

View File

@ -29,7 +29,7 @@ namespace cruft::cpu {
#if defined(PROCESSOR_AMD64)
#include "cpuid/x86.hpp"
#else
#include "cpuid/none.hpp"
#error "Unsupported CPU"
#endif
@ -37,6 +37,6 @@ namespace cruft::cpu {
#if defined(PROCESSOR_AMD64)
using native = x86;
#else
using native = none;
#error "Unsupported CPU"
#endif
}