diff options
| author | Mark Rutland <mark.rutland@arm.com> | 2026-02-18 16:43:47 +0000 |
|---|---|---|
| committer | Will Deacon <will@kernel.org> | 2026-02-25 21:37:44 +0000 |
| commit | bfd9c931d19aa59fb8371d557774fa169b15db9a (patch) | |
| tree | 22bdb2a1274001810020deaa1af42ee6e3e7514f /include/linux/can/dev | |
| parent | 9d1a7c4a457eac8a7e07e1685f95e54fa551db5e (diff) | |
arm64: tlb: Allow XZR argument to TLBI ops
The TLBI instruction accepts XZR as a register argument, and for TLBI
operations with a register argument, there is no functional difference
between using XZR or another GPR which contains zeroes. Operations
without a register argument are encoded as if XZR were used.
Allow the __TLBI_1() macro to use XZR when a register argument is all
zeroes.
Today this only results in a trivial code saving in
__do_compat_cache_op()'s workaround for Neoverse-N1 erratum #1542419. In
subsequent patches this pattern will be used more generally.
There should be no functional change as a result of this patch.
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Oliver Upton <oupton@kernel.org>
Cc: Ryan Roberts <ryan.roberts@arm.com>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'include/linux/can/dev')
0 files changed, 0 insertions, 0 deletions
