]> git.baikalelectronics.ru Git - uboot.git/commit
armv8/cache.S: Read sysreg fields through ubfx
authorPierre-Clément Tosi <ptosi@google.com>
Fri, 27 Aug 2021 16:03:45 +0000 (18:03 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 23 Sep 2021 12:55:06 +0000 (08:55 -0400)
commite180f3aa00b482ba296c74765849b650377e89f8
tree90363833dcc85dccc9147bdd2ee43922338f7b13
parentc211d1733e5cfe08126cbc258afcc7d5591831b1
armv8/cache.S: Read sysreg fields through ubfx

Improve the file's readability and conciseness by using the appropriate
Aarch64 instruction: ubfx (unsigned bitfield extract). This makes the
code easier to follow as it directly manipulates the offsets and widths
of the fields read from system registers, as they are expressed in the
Standard (ARM ARM). This has the added benefit (albeit arguably
negligible) of reducing the final code size.

Signed-off-by: Pierre-Clément Tosi <ptosi@google.com>
arch/arm/cpu/armv8/cache.S