X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Futils%2Fmono-hwcap-sparc.c;h=75208bdeff7bc02996f188a00eeaed769007d138;hb=c690636c01df73badb1e24c146da8492dbeabade;hp=f039ec28e4ea2f3a7cd49a9c1438c695b7f1c969;hpb=e946a6cdebde729e1c03ec374184254ab38da184;p=mono.git diff --git a/mono/utils/mono-hwcap-sparc.c b/mono/utils/mono-hwcap-sparc.c index f039ec28e4e..75208bdeff7 100644 --- a/mono/utils/mono-hwcap-sparc.c +++ b/mono/utils/mono-hwcap-sparc.c @@ -16,34 +16,25 @@ * Copyright 2006 Broadcom * Copyright 2007-2008 Andreas Faerber * Copyright 2011-2013 Xamarin Inc + * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ -#include "mono/utils/mono-hwcap-sparc.h" +#include "mono/utils/mono-hwcap.h" #include - #if !defined(__linux__) #include #else #include #endif -gboolean mono_hwcap_sparc_is_v9 = FALSE; - -#if defined(MONO_CROSS_COMPILE) -void -mono_hwcap_arch_init (void) -{ -} -#else void mono_hwcap_arch_init (void) { char buf [1024]; #if !defined(__linux__) - if (!sysinfo (SI_ISALIST, buf, 1024)) - g_assert_not_reached (); + g_assert (sysinfo (SI_ISALIST, buf, 1024)); #else /* If the page size is 8192, we're on a 64-bit SPARC, which * in turn means a v9 or better. @@ -56,10 +47,3 @@ mono_hwcap_arch_init (void) mono_hwcap_sparc_is_v9 = strstr (buf, "sparcv9"); } -#endif - -void -mono_hwcap_print (FILE *f) -{ - g_fprintf (f, "mono_hwcap_sparc_is_v9 = %i\n", mono_hwcap_sparc_is_v9); -}