Skip to content
Snippets Groups Projects
Commit 8738ad32 authored by Maxim Belkin's avatar Maxim Belkin
Browse files

cpu.rb: clean up the list of CPU instructions


Co-authored-by: default avatarShaun Jackman <sjackman@gmail.com>
Co-authored-by: default avatarMarkus Reiter <me@reitermark.us>
parent 8fe91aac
No related branches found
No related tags found
No related merge requests found
......@@ -69,8 +69,9 @@ module Hardware
end
end
# Supported CPU instructions
def flags
@flags ||= cpuinfo[/^(flags|Features).*/, 0]&.split
@flags ||= cpuinfo[/^(?:flags|Features)\s*: (.*)/, 1]&.split
@flags ||= []
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment