driver-native.c (host_detect_local_cpu): Handle new kernel strings for Loongson-2E/2F/3A.
gcc/ 2014-01-10 Huacai Chen <chenhc@lemote.com> * config/mips/driver-native.c (host_detect_local_cpu): Handle new kernel strings for Loongson-2E/2F/3A. From-SVN: r206514
This commit is contained in:
parent
a2aac0c954
commit
450c586db7
|
@ -1,3 +1,8 @@
|
|||
2014-01-10 Huacai Chen <chenhc@lemote.com>
|
||||
|
||||
* config/mips/driver-native.c (host_detect_local_cpu): Handle new
|
||||
kernel strings for Loongson-2E/2F/3A.
|
||||
|
||||
2014-01-08 Uros Bizjak <ubizjak@gmail.com>
|
||||
|
||||
Backport from mainline
|
||||
|
|
|
@ -116,11 +116,17 @@ host_detect_local_cpu (int argc, const char **argv)
|
|||
if (strncmp (buf, "cpu model", sizeof ("cpu model") - 1) == 0)
|
||||
{
|
||||
if (strstr (buf, "Godson2 V0.2") != NULL
|
||||
|| strstr (buf, "Loongson-2 V0.2") != NULL)
|
||||
|| strstr (buf, "Loongson-2 V0.2") != NULL
|
||||
|| strstr (buf, "Loongson-2E") != NULL)
|
||||
cpu = "loongson2e";
|
||||
else if (strstr (buf, "Godson2 V0.3") != NULL
|
||||
|| strstr (buf, "Loongson-2 V0.3") != NULL)
|
||||
|| strstr (buf, "Loongson-2 V0.3") != NULL
|
||||
|| strstr (buf, "Loongson-2F") != NULL)
|
||||
cpu = "loongson2f";
|
||||
else if (strstr (buf, "Godson3 V0.5") != NULL
|
||||
|| strstr (buf, "Loongson-3 V0.5") != NULL
|
||||
|| strstr (buf, "Loongson-3A") != NULL)
|
||||
cpu = "loongson3a";
|
||||
else if (strstr (buf, "SiByte SB1") != NULL)
|
||||
cpu = "sb1";
|
||||
else if (strstr (buf, "R5000") != NULL)
|
||||
|
|
Loading…
Reference in New Issue