Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jan 2009 18:20:52 -0500
From:      "Sabeeh Baig" <baigsabeeh@gmail.com>
To:        freebsd-emulation@freebsd.org
Subject:   linprocfs cpuinfo Seems Dated
Message-ID:  <de2964020901181520r20f9c036qb1f83491247f13d6@mail.gmail.com>

index | next in thread | raw e-mail

[-- Attachment #1 --]
I was testing recent Linux-only applications, one of them being Bibble
Pro.  Bibble Pro requires at least SSE to function.  Without SSE, it
warns you that SSE is required and then exits.  I looked at
linprocfs.c and it seems that cpuinfo is static; it doesn't actually
read any values, but has set values that it reports.  Is the fix
really as simple as adding sse and sse2 into the flags section?  It
worked, but I'm not sure if it's actually a proper fix.  I've attached
the patch.

-- 
"UNIX is basically a simple operating system, but you have to be a
genius to understand the simplicity."

Sabeeh Ahmed Baig

[-- Attachment #2 --]
--- linprocfs.old.c	2009-01-18 16:52:34.000000000 -0500
+++ linprocfs.c	2009-01-18 17:04:04.000000000 -0500
@@ -222,7 +222,7 @@
 		"cmov",	    "pat",     "pse36",	   "pn",       "b19",
 		"b20",	    "b21",     "mmxext",   "mmx",      "fxsr",
 		"xmm",	    "b26",     "b27",	   "b28",      "b29",
-		"3dnowext", "3dnow"
+		"3dnowext", "3dnow",   "sse",      "sse2"
 	};
 
 	switch (cpu_class) {
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?de2964020901181520r20f9c036qb1f83491247f13d6>