[MPlayer-dev-eng] cpuid vs 386 vs 486

David Holm david at realityrift.com
Tue Feb 5 22:19:55 CET 2002


In cpudetect.c the mnemonic "pushf" is used to fetch the Eflag register
although the amd tech docs recommend you use "pushfd". The intel manual
says pushf/pushfd may be synonyms in your assembler, BUT this might not
be true in which case pushf performs a 16bit push and pushfd performs a
32bit push. Since the Eflag is compared (xor:ed) against a 24bit value
(0x200000) it seems illogical to use pushf here. I do not know how gas
would translate pushf but it sounds like it is translated to a 16 bit
and might cause an error.
Try using the mnemonic pushfd and see if you still get sig ILL. For the
sake of portability I think this should be conformed to the standard
(pushfd) as not to cause problems on say solaris or any other system
which might use a proprietary assembler which would translate pushf into
a 16 bit push.

//David

On Tue, 2002-02-05 at 20:51, Gabucino wrote:
> I just tried MPlayer on my "new" 386sx20 laptop, but failed:
> Tested with : statically linked binary, without runtime cpudetect (also sig4
> with it). -mcpu=i386 -march=i386
> 
> 1. laptop (386) (Linux 2.0.0) :
> 
> 
> MPlayer CVS-020204-00:49-2.95.3 (C) 2000-2002 Arpad Gereoffy (see DOCS!)
> 
> CPUID not supported!???
> CPUflags: Type: 0 MMX: 0 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
> Compiled for x86 CPU with features:
> Linux RTC init: open: No such file or directory
> Reading /usr/root/.mplayer/codecs.conf: 28 audio & 74 video codecs
> font: can't open file: /usr/root/.mplayer/font/font.desc
> font: can't open file: /usr/local/share/mplayer/font/font.desc
> Using usleep() timing
> Playing a.avi
> Not an URL!
> Detected AVI file format!
> MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
> VIDEO:  [DIV3]  352x240  24bpp  29.97 fps  148.6 kbps (18.1 kbyte/s)
> [V] filefmt:3  fourcc:0x33564944  size:352x240  fps:29.97  ftime:=0.0334
> Trying to force video codec driver family 5 ...
> Detected video codec: [ffdivx] drv:5 prio:0 (FFmpeg DivX ;-) (MS MPEG-4 v3))
> Movie-Aspect is undefined - no prescaling applied.
> VO: [null] 352x240 => 352x240 Planar YV12 
> Audio: no sound!!!
> Start playing...
> V:   0.0    1   0%  0%  0.0% 0 0 0%
> MPlayer interrupted by signal 4 in module: decode_video 
> 





More information about the MPlayer-dev-eng mailing list