summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/detect_devices.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index a50c8a524..385bbc2fa 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -784,7 +784,9 @@ sub isLaptop() {
}
sub is_i586() {
- cat_('/proc/cpuinfo') =~ /^cpu family\s*:\s*(\d+)/m && $1 < 6;
+ my $cpuinfo = cat_('/proc/cpuinfo');
+ $cpuinfo =~ /^cpu family\s*:\s*(\d+)/m && $1 < 6 ||
+ $cpuinfo !~ /^flags.*\bcmov\b/m;
}
sub matching_type {