I wanted to run Bibble Pro, which is available for Linux and Windows, on FreeBSD. The installation of the program on FreeBSD was fairly standard, but upon running it, Bibble would quit saying that it requires SSE to run. Running cat /usr/compat/linux/proc/cpuinfo showed that SSE and SSE2 and SSE3 were not reported, which my CPU has support for. Looking at the source code confirmed that cpuinfo is indeed static and reports set values for each CPU without checking. I was able to add entires for SSE and SSE2 to linprocfs.c, but this doesn't seem like a proper solution. (I've included the patch.) Why was cpuinfo in linprocfs implemented with static values? Checking for proper values seems like the better idea, no? I'd be willing to work on it. Fix: Patch attached with submission follows:
Responsible Changed From-To: freebsd-bugs->freebsd-emulation Over to maintainer(s).
Author: gavin Date: Sun Mar 14 13:32:40 2010 New Revision: 205152 URL: http://svn.freebsd.org/changeset/base/205152 Log: Merge r183385 from head (by cognet) Advertise bit 26 as sse2. PR: kern/130724 Approved by: cognet Modified: stable/7/sys/compat/linprocfs/linprocfs.c Directory Properties: stable/7/sys/ (props changed) stable/7/sys/cddl/contrib/opensolaris/ (props changed) stable/7/sys/contrib/dev/acpica/ (props changed) stable/7/sys/contrib/pf/ (props changed) Modified: stable/7/sys/compat/linprocfs/linprocfs.c ============================================================================== --- stable/7/sys/compat/linprocfs/linprocfs.c Sun Mar 14 13:29:09 2010 (r205151) +++ stable/7/sys/compat/linprocfs/linprocfs.c Sun Mar 14 13:32:40 2010 (r205152) @@ -222,7 +222,7 @@ linprocfs_docpuinfo(PFS_FILL_ARGS) "sep", "sep", "mtrr", "pge", "mca", "cmov", "pat", "pse36", "pn", "b19", "b20", "b21", "mmxext", "mmx", "fxsr", - "xmm", "b26", "b27", "b28", "b29", + "xmm", "sse2", "b27", "b28", "b29", "3dnowext", "3dnow" }; _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed This is fixed in head (r183385) and merged to stable/7.