Fix detection of YMM registers presence (#16168)
authorJan Vorlicek <janvorli@microsoft.com>
Fri, 2 Feb 2018 01:54:47 +0000 (02:54 +0100)
committerGitHub <noreply@github.com>
Fri, 2 Feb 2018 01:54:47 +0000 (02:54 +0100)
commit158f16dbd6fe27c3a95224bd1ccf40c3891b5df2
tree209cc719a50bff2b3ffe3efe6cb1144a7a579cf5
parent0e666ee56ea62ba51875dc6f85ee1fabdb922187
Fix detection of YMM registers presence (#16168)

It was found that we incorrectly try to restore YMM registers in RtlRestoreContext
when the processor supports xstate, but doesn't have YMM registers. This change
fixes that by testing the YMM presence flag too.
src/pal/src/include/pal/context.h
src/pal/src/thread/context.cpp