Merge pull request #1273 from joelmartinez/docs-unified-fix
[mono.git] / mono / utils / mono-hwcap-ppc.c
index a722d8ba7673891337e9adef9abd4226fa5084f7..c88b95f6ec810974cee7fbf0a33d827e073042eb 100644 (file)
@@ -60,8 +60,18 @@ mono_hwcap_arch_init (void)
        if ((platform = getauxval(AT_PLATFORM))) {
                const char *str = (const char *) platform;
 
-               if (!strcmp (str, "ppc970") || (!strncmp (str, "power", 5) && arch [5] >= '4' && arch [5] <= '7'))
+               if (!strcmp (str, "ppc970") || (!strncmp (str, "power", 5) && str [5] >= '4' && str [5] <= '7'))
                        mono_hwcap_ppc_has_multiple_ls_units = TRUE;
        }
 #endif
 }
+
+void
+mono_hwcap_print (FILE* f)
+{
+       g_fprintf (f, "mono_hwcap_ppc_has_icache_snoop = %i\n", mono_hwcap_ppc_has_icache_snoop);
+       g_fprintf (f, "mono_hwcap_ppc_is_isa_2x = %i\n", mono_hwcap_ppc_is_isa_2x);
+       g_fprintf (f, "mono_hwcap_ppc_is_isa_64 = %i\n", mono_hwcap_ppc_is_isa_64);
+       g_fprintf (f, "mono_hwcap_ppc_has_move_fpr_gpr = %i\n", mono_hwcap_ppc_has_move_fpr_gpr);
+       g_fprintf (f, "mono_hwcap_ppc_has_multiple_ls_units = %i\n", mono_hwcap_ppc_has_multiple_ls_units);
+}