cpu.rb: clean up the list of CPU instructions
Co-authored-by: Shaun Jackman <sjackman@gmail.com> Co-authored-by: Markus Reiter <me@reitermark.us>
This commit is contained in:
parent
8fe91aacc3
commit
8738ad324e
@ -69,8 +69,9 @@ module Hardware
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Supported CPU instructions
|
||||||
def flags
|
def flags
|
||||||
@flags ||= cpuinfo[/^(flags|Features).*/, 0]&.split
|
@flags ||= cpuinfo[/^(?:flags|Features)\s*: (.*)/, 1]&.split
|
||||||
@flags ||= []
|
@flags ||= []
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user