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)
{
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)
{