[kernel] Add MXCSR handling, mask SIMD exceptions

Now threads inherit their MXCSR (sans exception state bits) SIMD
settings from their creator. By default, all exceptions are masked, and
both "to zero" flags are set.
This commit is contained in:
Justin C. Miller
2023-05-21 14:48:27 -07:00
parent f215b98f74
commit da14fd123e
7 changed files with 68 additions and 9 deletions

View File

@@ -66,8 +66,6 @@ namespace {
template <>
class bitset<64>
{
static constexpr unsigned num_elems = 1;
template <typename T>
static constexpr uint64_t bit_or(T b) { return 1ull << uint64_t(b); }
@@ -127,8 +125,6 @@ private:
template <>
class bitset<32>
{
static constexpr unsigned num_elems = 1;
template <typename T>
static constexpr uint32_t bit_or(T b) { return 1u << uint32_t(b); }