diff options
author | Jack Lloyd <[email protected]> | 2019-12-06 11:07:53 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-12-06 11:11:56 -0500 |
commit | f0ca6fd32b1d02e6ad5c42219b249d49d8158bce (patch) | |
tree | 9b40940c1c35dda19809316c846f8d94ecfc9e05 /src/lib/utils/cpuid/cpuid_ppc.cpp | |
parent | cecaaf474d6f6c5c5e1dd040b70ec34411d67da2 (diff) |
Make CPU probes noexcept
Diffstat (limited to 'src/lib/utils/cpuid/cpuid_ppc.cpp')
-rw-r--r-- | src/lib/utils/cpuid/cpuid_ppc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/utils/cpuid/cpuid_ppc.cpp b/src/lib/utils/cpuid/cpuid_ppc.cpp index ff528d88e..4fb24f24b 100644 --- a/src/lib/utils/cpuid/cpuid_ppc.cpp +++ b/src/lib/utils/cpuid/cpuid_ppc.cpp @@ -86,7 +86,7 @@ uint64_t CPUID::CPUID_Data::detect_cpu_features(size_t* cache_line_size) (others, too, maybe?) will trap and emulate it for us. */ - int pvr = OS::run_cpu_instruction_probe([]() -> int { + int pvr = OS::run_cpu_instruction_probe([]() noexcept -> int { uint32_t pvr = 0; asm volatile("mfspr %0, 287" : "=r" (pvr)); // Top 16 bits suffice to identify the model |