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:
Maxim Belkin 2020-11-27 17:00:24 -06:00
parent 8fe91aacc3
commit 8738ad324e

View File

@ -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