cpuid: defend against unknown architectures
This commit is contained in:
parent
8fc182ca8e
commit
7cb0c8f6d8
@ -29,7 +29,7 @@ namespace cruft::cpu {
|
|||||||
#if defined(PROCESSOR_AMD64)
|
#if defined(PROCESSOR_AMD64)
|
||||||
#include "cpuid/x86.hpp"
|
#include "cpuid/x86.hpp"
|
||||||
#else
|
#else
|
||||||
#include "cpuid/none.hpp"
|
#error "Unsupported CPU"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@ -37,6 +37,6 @@ namespace cruft::cpu {
|
|||||||
#if defined(PROCESSOR_AMD64)
|
#if defined(PROCESSOR_AMD64)
|
||||||
using native = x86;
|
using native = x86;
|
||||||
#else
|
#else
|
||||||
using native = none;
|
#error "Unsupported CPU"
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user