File tree 1 file changed +10
-1
lines changed 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -438,7 +438,7 @@ CPU::CPU()
438
438
//
439
439
// See http://code.google.com/p/android/issues/detail?id=10812
440
440
//
441
- // We try to correct this by looking at the 'elf_format '
441
+ // We try to correct this by looking at the 'elf_platform '
442
442
// field reported by the 'Processor' field, which is of the
443
443
// form of "(v7l)" for an ARMv7-based CPU, and "(v6l)" for
444
444
// an ARMv6-one. For example, the Raspberry Pi is one popular
@@ -450,6 +450,15 @@ CPU::CPU()
450
450
}
451
451
delete[] processor;
452
452
}
453
+
454
+ // elf_platform moved to the model name field in Linux v3.8.
455
+ if (architecture_ == 7 ) {
456
+ char * processor = cpu_info.ExtractField (" model name" );
457
+ if (HasListItem (processor, " (v6l)" )) {
458
+ architecture_ = 6 ;
459
+ }
460
+ delete[] processor;
461
+ }
453
462
}
454
463
455
464
// Try to extract the list of CPU features from ELF hwcaps.
You can’t perform that action at this time.
0 commit comments