未验证 提交 9915e982 编写于 作者: T Tanner Gooding 提交者: GitHub

Ensure that IsSupported being false disables the tracked hierachy in our tests (#88848)

上级 5a43a6f9
......@@ -373,7 +373,7 @@ public unsafe static void CpuId()
static bool IsBitIncorrect(int register, int bitNumber, Type isa, bool isSupported, string name, ref bool isHierarchyDisabled)
{
bool isSupportedByHardware = (register & (1 << bitNumber)) != 0;
isHierarchyDisabled |= !GetDotnetEnable(name);
isHierarchyDisabled |= (!isSupported || !GetDotnetEnable(name));
if (isSupported)
{
......
......@@ -366,7 +366,7 @@ public unsafe static int Main()
static bool IsBitIncorrect(int register, int bitNumber, Type isa, bool isSupported, string name, ref bool isHierarchyDisabled)
{
bool isSupportedByHardware = (register & (1 << bitNumber)) != 0;
isHierarchyDisabled |= !GetDotnetEnable(name);
isHierarchyDisabled |= (!isSupported || !GetDotnetEnable(name));
if (isSupported)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册