[MPlayer-dev-eng] [PATCH] ev4, ev5, ev56 patch
Andrew A. Gill
superluser at frontiernet.net
Sun Sep 21 04:05:41 CEST 2003
On Sat, 20 Sep 2003, Andrew A. Gill wrote:
> Here's the patch for ev4, ev5, and ev56 with GCC-3. As I said before,
> there's no MVI in DEC Alpha processors prior to the pca56. I have tested
> this patch and it seems to work.
Oh, no! I sent the wrong patch!
While I was testing it, I tried to make sure that if I claimed that my
processor could understand MVI, it would try to compile it. I forgot to
change it back before sending it. The patch that I sent will work on
everything BUT the ev56.
Attached is the proper one. Sorry.
--
|Andrew A. Gill |I posted to Silent-Tristero and|
|<superluser at frontiernet.net> |all I got was this stupid sig! |
|alt.tv.simpsons CBG-FAQ author | |
| (Report all obscene mail to Le Maitre Pots)|
|Nothing here yet: <http://www.needsfoodbadly.com> Temporary sig: --
TIA.
-------------- next part --------------
--- configure.bak Sat Sep 20 13:29:33 2003
+++ configure Sat Sep 20 13:39:57 2003
@@ -890,13 +890,14 @@
EOF
$_cc -o "$TMPO" "$TMPC"
case `"$TMPO"` in
- 0-0) proc="ev4" ;;
- 1-0) proc="ev5" ;;
- 1-1) proc="ev56" ;;
- 1-101) proc="pca56" ;;
- 2-303) proc="ev6" ;;
- 2-307) proc="ev67" ;;
- 2-1307) proc="ev68" ;;
+
+ 0-0) proc="ev4"; cpu_understands_mvi="0";;
+ 1-0) proc="ev5"; cpu_understands_mvi="0";;
+ 1-1) proc="ev56"; cpu_understands_mvi="0";;
+ 1-101) proc="pca56"; cpu_understands_mvi="1";;
+ 2-303) proc="ev6"; cpu_understands_mvi="1";;
+ 2-307) proc="ev67"; cpu_understands_mvi="1";;
+ 2-1307) proc="ev68"; cpu_understands_mvi="1";;
esac
echores "$proc"
@@ -913,12 +914,12 @@
_optimizing="$proc"
echocheck "MVI instruction support in GCC"
- if test "$_cc_major" -ge "3"; then
- _def_gcc_mvi_support="#define CAN_COMPILE_ALPHA_MVI 1"
+ if test "$_cc_major" -ge "3" && test "$cpu_understands_mvi" = "1" ; then
+ _def_gcc_mvi_support="#define CAN_COMPILE_ALPHA_MVI 1"
echores "yes"
else
_def_gcc_mvi_support="#undef CAN_COMPILE_ALPHA_MVI"
- echores "no"
+ echores "no, GCC = `( $_cc -dumpversion ) 2>&1` (must be >= 3), CPU = $proc (must be pca56 or later)"
fi
;;
More information about the MPlayer-dev-eng
mailing list