From brad at comstyle.com Mon Jul 26 01:57:10 2021 From: brad at comstyle.com (Brad Smith) Date: Sun, 25 Jul 2021 18:57:10 -0400 Subject: [MPlayer-dev-eng] [PATCH] add initial RISC-V support Message-ID: OpenBSD only supports riscv64 but this is an attempt at adding some of the initial bits for RISC-V support. Index: configure =================================================================== --- configure (revision 38313) +++ configure (working copy) @@ -289,6 +289,13 @@ esac } +riscv() { + case "$host_arch" in + riscv*) return 0;; + *) return 1;; + esac +} + # Use this before starting a check echocheck() { echo "============ Checking for $@ ============" >> "$TMPLOG" @@ -1991,7 +1998,10 @@ if arm ; then cc_check && host_arch=aarch64 || host_arch=arm fi +if riscv ; then + cc_check && host_arch=riscv64 || host_arch=riscv32 fi +fi echo "Detected operating system: $system_name" echo "Detected host architecture: $host_arch" @@ -2836,6 +2846,15 @@ iproc='arc' ;; + riscv*) + arch='riscv' + iproc='riscv' + + if test "$host_arch" = "riscv64" ; then + def_fast_64bit='#define HAVE_FAST_64BIT 1' + fi + ;; + *) echo "The architecture of your CPU ($host_arch) is not supported by this configure script" echo "It seems nobody has ported MPlayer to your OS or CPU type yet." From Reimar.Doeffinger at gmx.de Sat Jul 31 13:56:35 2021 From: Reimar.Doeffinger at gmx.de (=?utf-8?Q?Reimar_D=C3=B6ffinger?=) Date: Sat, 31 Jul 2021 12:56:35 +0200 Subject: [MPlayer-dev-eng] [PATCH] add initial RISC-V support In-Reply-To: References: Message-ID: > On 26 Jul 2021, at 00:57, Brad Smith wrote: > > OpenBSD only supports riscv64 but this is an attempt at adding > some of the initial bits for RISC-V support. Given you can test only 64 bit and everyone else is dropping 32-bit support left and right is all this extra code really justifiable compared to just assuming 64 bit?