From: Catalin Marinas <catalin.marinas@arm.com>
To: Fuad Tabba <fuad.tabba@linux.dev>
Cc: will@kernel.org, mark.rutland@arm.com, maz@kernel.org,
oupton@kernel.org, joey.gouly@arm.com, suzuki.poulose@arm.com,
yuzenghui@huawei.com, anshuman.khandual@arm.com,
tabba@google.com, linux-arm-kernel@lists.infradead.org,
kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] arm64: Use symbolic constants for the ccmp NZCV immediates
Date: Tue, 24 Nov 2026 11:32:53 +0000 [thread overview]
Message-ID: <awV15Rv-caDclC9K@arm.com> (raw)
In-Reply-To: <20261009072147.474952-1-fuad.tabba@linux.dev>
On Fri, Oct 09, 2026 at 08:21:47AM +0100, Fuad Tabba wrote:
> diff --git a/arch/arm64/include/asm/ptrace.h b/arch/arm64/include/asm/ptrace.h
> index f7dc5fb9427d6..15c381ef7d2c2 100644
> --- a/arch/arm64/include/asm/ptrace.h
> +++ b/arch/arm64/include/asm/ptrace.h
> @@ -30,6 +30,10 @@
> #define PSR_MODE_THREAD_BIT (1 << 0)
> #define PSR_IL_BIT (1 << 20)
>
> +/* CCMP NZCV immediates that make the named condition hold */
> +#define CCMP_NZCV_EQ (PSR_Z_BIT >> 28)
> +#define CCMP_NZCV_LT (PSR_N_BIT >> 28)
> +
> /* AArch32-specific ptrace requests */
> #define COMPAT_PTRACE_GETREGS 12
> #define COMPAT_PTRACE_SETREGS 13
One nit: I'd place the definitions above (or below) the
ARM64_S390_COMMON block, the generated s390 header shouldn't need them.
Otherwise it greatly improves clarity.
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
prev parent reply other threads:[~2026-11-24 11:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-09 7:21 [PATCH] arm64: Use symbolic constants for the ccmp NZCV immediates Fuad Tabba
2026-10-16 4:31 ` Anshuman Khandual
2026-11-24 11:32 ` Catalin Marinas [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=awV15Rv-caDclC9K@arm.com \
--to=catalin.marinas@arm.com \
--cc=anshuman.khandual@arm.com \
--cc=fuad.tabba@linux.dev \
--cc=joey.gouly@arm.com \
--cc=kvmarm@lists.linux.dev \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=maz@kernel.org \
--cc=oupton@kernel.org \
--cc=suzuki.poulose@arm.com \
--cc=tabba@google.com \
--cc=will@kernel.org \
--cc=yuzenghui@huawei.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox