[MPlayer-dev-eng] [PATCH] NetBSD sparc64 and vis
Dominik 'Rathann' Mierzejewski
dominik at rangers.eu.org
Sun Aug 26 13:33:51 CEST 2007
On Sunday, 26 August 2007 at 13:01, Reimar Döffinger wrote:
> Hello,
> On Sun, Aug 26, 2007 at 01:34:09PM +0300, Jan Knutar wrote:
> [...]
> > Attached is a patch that makes configure check the output of sysctl
> > hw.model on netbsd sparc64, and if 'UltraSPARC' is found there, vis is
> > enabled and -mcpu=ultrasparc is set. Vis is disabled if running on
> > non-ultrasparc sparc64.
> Do they exist?
> > Interestingly the Solaris-specific
> > code in configure disables VIS on sun4v (T1 aka Niagara?).
That's because T1 doesn't support most of VIS:
http://opensparc-t1.sunsource.net/specs/UST1-UASuppl-current-draft-P-EXT.pdf
[...]
5.4 VIS Instructions
UltraSPARC T1 supports in hardware the VIS 2 SIAM instruction and a subset
of the VIS 1 instructions.
All other VIS 1 and VIS 2 instructions (see TABLE 5-2 for a list) cause an
illegal_instruction exception on UltraSPARC T1 and are emulated in software.
[...]
> And isn't there a simpler and especially more portable
> way of detecting them? (actually it is stupid enough that the normal
> sparc detection only works for sunos).
I don't know. Looking through /proc on sun4u running Linux doesn't reveal
anything VIS-related.
Regards,
R.
--
MPlayer developer and RPMs maintainer: http://mplayerhq.hu http://rpm.livna.org
There should be a science of discontent. People need hard times and
oppression to develop psychic muscles.
-- from "Collected Sayings of Muad'Dib" by the Princess Irulan
More information about the MPlayer-dev-eng
mailing list