cpuid: move specifics into a directory

This commit is contained in:
Danny Robson 2019-02-02 16:37:46 +11:00
parent c4a67c7fc9
commit c5633a32c5
4 changed files with 4 additions and 4 deletions

View File

@ -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}")

View File

@ -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

View File

@ -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"