os/mac/diagnostic: set OCLP Support Tiers
Signed-off-by: Patrick Linnane <patrick@linnane.io>
This commit is contained in:
parent
76b3cf0334
commit
2c9b094bea
@ -145,11 +145,13 @@ module OS
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
oclp_support_tier = Hardware::CPU.features.include?(:pclmulqdq) ? 2 : 3
|
||||||
|
|
||||||
<<~EOS
|
<<~EOS
|
||||||
You have booted macOS using OpenCore Legacy Patcher.
|
You have booted macOS using OpenCore Legacy Patcher.
|
||||||
We do not provide support for this configuration.
|
We do not provide support for this configuration.
|
||||||
|
|
||||||
#{support_tier_message(tier: 2)}
|
#{support_tier_message(tier: oclp_support_tier)}
|
||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ module OS
|
|||||||
::Hardware::CPU.sysctl_bool("sysctl.proc_translated")
|
::Hardware::CPU.sysctl_bool("sysctl.proc_translated")
|
||||||
end
|
end
|
||||||
|
|
||||||
def features
|
def self.features
|
||||||
@features ||= ::Hardware::CPU.sysctl_n(
|
@features ||= ::Hardware::CPU.sysctl_n(
|
||||||
"machdep.cpu.features",
|
"machdep.cpu.features",
|
||||||
"machdep.cpu.extfeatures",
|
"machdep.cpu.extfeatures",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user