Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: Michael Niedermayer <michael@niedermayer.cc>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH] configure: Remove dcbzl check for e500v1 and e500v2 architectures
Date: Fri, 5 Jan 2024 22:35:31 +0100
Message-ID: <20240105213531.GG6420@pb2> (raw)
In-Reply-To: <74f9b1f3-698d-7a3d-1a5-1b43f88ea9f2@softwolves.pp.se>


[-- Attachment #1.1: Type: text/plain, Size: 1731 bytes --]

On Mon, Sep 26, 2022 at 11:51:44AM +0100, Peter Krefting wrote:
> The DCBZL instruction is not available for the e500v1 and e500v2
> architectures, but may still be recognized by the toolchain, so we need to
> remove the test for it explicitly for these architectures.
> 
> References: PowerPC™ e500 Core Family Reference Manual (Freescale)
> 
> Found-by: Ståle Kristoffersen <staalebk@ifi.uio.no>
> Compare: Commit d5733936d857ce5c7d28c0bc9e89a2e2548f8895
> ---
>  configure | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> This was originally fixed by commit d5733936d857ce5c7d28c0bc9e89a2e2548f8895
> in version 2.2, but later broke in a merge which introduced a "disable dcbzl",
> forgot to check for it in the ppc branch.
> 
> diff --git a/configure b/configure
> index 7a62f0c248..5d01833f40 100755
> --- a/configure
> +++ b/configure
> @@ -6058,7 +6058,9 @@ elif enabled ppc; then
> 
>      enable local_aligned
> 
> -    check_inline_asm dcbzl     '"dcbzl 0, %0" :: "r"(0)'
> +    if enabled dcbzl; then
> +        check_inline_asm dcbzl    '"dcbzl 0, %0" :: "r"(0)'
> +    fi

something like this
disabled dcbzl || check_inline_asm dcbzl    '"dcbzl 0, %0" :: "r"(0)'

seems more clear
what this is supposed to do is to disable the instruction when it was
explicitly disabled for the target CPU

thx

{...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Awnsering whenever a program halts or runs forever is
On a turing machine, in general impossible (turings halting problem).
On any real computer, always possible as a real computer has a finite number
of states N, and will either halt in less than N cycles or never halt.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

[-- Attachment #2: Type: text/plain, Size: 251 bytes --]

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

      parent reply	other threads:[~2024-01-05 21:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-26 10:51 Peter Krefting
2022-09-26 11:24 ` Rémi Denis-Courmont
2022-09-28 12:52   ` Peter Krefting
2022-09-28 14:28     ` Rémi Denis-Courmont
2022-09-28 15:15       ` Peter Krefting
2024-01-05 21:35 ` Michael Niedermayer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240105213531.GG6420@pb2 \
    --to=michael@niedermayer.cc \
    --cc=ffmpeg-devel@ffmpeg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git