Skip to content

Commit 91bc2da

Browse files
zenoalbisserbbandix
authored andcommitted
<v8> fix ARMv6 detection for v8.
The linux kernel now reports the processor information in "model name" and not in "Processor" anymore. Both should be checked for backwards compatibility. As described by: https://code.google.com/p/v8/issues/detail?id=3112#c16 Reviewed-by: Andras Becsi <[email protected]> Change-Id: I567a72c18f43a483e7576e880c2d383873f5660f Reviewed-by: Zeno Albisser <[email protected]>
1 parent b0b69ea commit 91bc2da

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

chromium/v8/src/cpu.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,10 +380,12 @@ CPU::CPU() : stepping_(0),
380380
// ARMv6 device that reports architecture 7.
381381
if (architecture_ == 7) {
382382
char* processor = cpu_info.ExtractField("Processor");
383-
if (HasListItem(processor, "(v6l)")) {
383+
char* model_name = cpu_info.ExtractField("model name");
384+
if (HasListItem(processor, "(v6l)") || HasListItem(model_name, "(v6l)")) {
384385
architecture_ = 6;
385386
}
386387
delete[] processor;
388+
delete[] model_name;
387389
}
388390
}
389391

0 commit comments

Comments
 (0)