Hi Burkhard,
On the Hygon CPU platform, I had some problems executing ./configure
in the Lemuria code tree.
The log is as follows:
checking if gcc supports Your flags... no
checking if gcc supports does flags... no
checking if gcc supports not flags... no
checking if gcc supports even flags... no
checking if gcc supports support flags... no
checking if gcc supports "i386" flags... no
checking if gcc supports for flags... no
checking if gcc supports '-march' flags... no
checking if gcc supports and flags... no
checking if gcc supports -mtune. flags... no
Log after repaired:
checking if gcc supports -march=k8 flags... yes
checking if gcc supports -mtune=k8 flags... yes
checking if gcc supports --fast-math flags... yes
The output of svn diff:
Index: cpuinfo.sh
===================================================================
--- cpuinfo.sh (revision 6215)
+++ cpuinfo.sh (working copy)
@@ -150,6 +150,14 @@
;;
esac
;;
+ HygonGenuine)
+ case "$pfamily" in
+ 24) proc=k8
+ ;;
+ *) proc=k8
+ ;;
+ esac
+ ;;
GenuineIntel)
case "$pfamily" in
3) proc=i386
Index: utils/cpuinfo.c
===================================================================
--- utils/cpuinfo.c (revision 6215)
+++ utils/cpuinfo.c (working copy)
@@ -102,6 +102,8 @@
model_name = "Unknown Intel CPU";
else if (strcmp(idstr, "AuthenticAMD") == 0)
model_name = "Unknown AMD CPU";
+ else if (strcmp(idstr, "HygonGenuine") == 0)
+ model_name = "Unknown Hygon CPU";
regs_ext = cpuid((1<<31) + 0);
max_ext_cpuid = regs_ext.eax;
Best regards!
Jinke Fan
_______________________________________________
Gmerlin-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gmerlin-general