[MPlayer-dev-eng] [PATCH] correct illegal instruction on < armv5tE

Diego Biurrun diego at biurrun.de
Tue Nov 11 16:28:17 CET 2008


On Thu, Nov 06, 2008 at 11:59:53PM +0100, GNUtoo at no-log.org wrote:
> > on Sunday 12 October 2008, GNUtoo at no-log.org wrote:
> >
> > Hmm, ifdefs around every instruction look extremely ugly. In
> > addition, they have exactly the same effect as just removing all
> > PLD instructions even for ARM cores that support cache prefetch
> > (HAVE_ARMV5TE is never defined when compiling this assembly file).
> I looked at the configure file of mplayer trunk and there is the following
> inside:
> if arm ; then
>   echocheck "ARM pld instruction"
>   cat > $TMPC << EOF
> int main(void) { __asm__ volatile ("pld [r0]"); return 0; }
> EOF
>   pld=no
>   cc_check && pld=yes
>   echores "$pld"
> so if I add the following to the beginning of the assembly file would it
> work?
> #ifndef HAVE_PLD
> .macro pld reg
> .endm
> #endif
> More precisely is the checks in the configure script enough or should I
> also add that in the configure script:
> enabled armv4l  && check_asm pld     '"pld [r0]"'

What we have is enough.  It accomplishes exactly what you need.

Diego



More information about the MPlayer-dev-eng mailing list