]> git.dujemihanovic.xyz Git - u-boot.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)
commitf050bfacc54deda3598a99645ec90727742494eb
tree90363833dcc85dccc9147bdd2ee43922338f7b13
parentf6bc5d17afa9fe12418edaf1fc9f82beeda06132
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