cpuid: move specifics into a directory
This commit is contained in:
parent
c4a67c7fc9
commit
c5633a32c5
@ -190,8 +190,8 @@ endif ()
|
|||||||
|
|
||||||
if (host_cpu STREQUAL "x86_64")
|
if (host_cpu STREQUAL "x86_64")
|
||||||
list (APPEND UTIL_FILES
|
list (APPEND UTIL_FILES
|
||||||
cpuid_x86.cpp
|
cpuid/x86.cpp
|
||||||
cpuid_x86.hpp
|
cpuid/x86.hpp
|
||||||
)
|
)
|
||||||
else ()
|
else ()
|
||||||
message (FATAL_ERROR "Unknown architecture ${host_cpu}")
|
message (FATAL_ERROR "Unknown architecture ${host_cpu}")
|
||||||
|
@ -27,7 +27,7 @@ namespace cruft::cpu {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#if defined(PROCESSOR_AMD64)
|
#if defined(PROCESSOR_AMD64)
|
||||||
#include "cpuid_x86.hpp"
|
#include "cpuid/x86.hpp"
|
||||||
#else
|
#else
|
||||||
#error "Unhandled architecture"
|
#error "Unhandled architecture"
|
||||||
#endif
|
#endif
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* Copyright 2018 Danny Robson <danny@nerdcruft.net>
|
* Copyright 2018 Danny Robson <danny@nerdcruft.net>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "cpuid_x86.hpp"
|
#include "x86.hpp"
|
||||||
|
|
||||||
#include "endian.hpp"
|
#include "endian.hpp"
|
||||||
#include "view.hpp"
|
#include "view.hpp"
|
Loading…
Reference in New Issue
Block a user