All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Henderson <richard.henderson@linaro.org>
To: Brad Smith <brad@comstyle.com>, qemu-devel@nongnu.org
Subject: Re: [PATCH 3/7] util/cpuinfo-aarch64: Detect FEAT_CSSC
Date: Wed, 12 Aug 2026 06:56:15 -0700	[thread overview]
Message-ID: <dd63055d-0770-4dcb-86f4-ce61ba864681@linaro.org> (raw)
In-Reply-To: <8dcd5fde-7d99-441a-86c2-5e293d474e23@comstyle.com>

On 8/11/26 20:35, Brad Smith wrote:
>> @@ -101,6 +103,15 @@ unsigned __attribute__((constructor)) cpuinfo_init(void)
>>           }
>>       }
>> +    mib[0] = CTL_MACHDEP;
>> +    mib[1] = CPU_ID_AA64ISAR2;
>> +    len = sizeof(isar2);
>> +    if (sysctl(mib, 2, &isar2, &len, NULL, 0) != -1) {
>> +        if (ID_AA64ISAR2_CSSC(isar2) >= ID_AA64ISAR2_CSSC_IMPL) {
>> +            info |= CPUINFO_CSSC;
>> +        }
>> +    }
>> +
>>       mib[0] = CTL_MACHDEP;
>>       mib[1] = CPU_ID_AA64PFR1;
>>       len = sizeof(pfr1);
> 
> You can remove the bottom chunk. Any OpenBSD release that has the ID_AA64ISAR2_CSSC
> and ID_AA64ISAR2_CSSC_IMPL constants is also covered by elf_aux_info() which is the
> first chunk.

Right-o.  Thanks!

r~


  reply	other threads:[~2026-08-12 13:56 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-12  0:31 [PATCH 0/7] tcg: Add min/max opcodes Richard Henderson
2026-08-12  0:31 ` [PATCH 1/7] tcg: Add integer " Richard Henderson
2026-08-12  8:42   ` Alex Bennée
2026-08-12  0:31 ` [PATCH 2/7] tcg/optimize: Handle " Richard Henderson
2026-08-12  7:17   ` Philippe Mathieu-Daudé
2026-08-12  8:46   ` Alex Bennée
2026-08-12  0:31 ` [PATCH 3/7] util/cpuinfo-aarch64: Detect FEAT_CSSC Richard Henderson
2026-08-12  3:35   ` Brad Smith
2026-08-12 13:56     ` Richard Henderson [this message]
2026-08-12  0:31 ` [PATCH 4/7] tcg/aarch64: Implement min/max with FEAT_CSSC Richard Henderson
2026-08-12  7:15   ` Philippe Mathieu-Daudé
2026-08-12  0:31 ` [PATCH 5/7] target/riscv64: Implement min/max with Zbb Richard Henderson
2026-08-12  0:31 ` [PATCH 6/7] tcg/aarch64: Implement ctpop with FEAT_CSSC Richard Henderson
2026-08-12  6:59   ` Philippe Mathieu-Daudé
2026-08-12  0:31 ` [PATCH 7/7] tcg/aarch64: Use CTZ from FEAT_CSSC Richard Henderson
2026-08-12  7:06   ` Philippe Mathieu-Daudé

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=dd63055d-0770-4dcb-86f4-ce61ba864681@linaro.org \
    --to=richard.henderson@linaro.org \
    --cc=brad@comstyle.com \
    --cc=qemu-devel@nongnu.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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.