1
0
Fork 0
alistair23-linux/arch/arm/include
Christoffer Dall b6ae256afd KVM: arm64: Only sign-extend MMIO up to register width
On AArch64 you can do a sign-extended load to either a 32-bit or 64-bit
register, and we should only sign extend the register up to the width of
the register as specified in the operation (by using the 32-bit Wn or
64-bit Xn register specifier).

As it turns out, the architecture provides this decoding information in
the SF ("Sixty-Four" -- how cute...) bit.

Let's take advantage of this with the usual 32-bit/64-bit header file
dance and do the right thing on AArch64 hosts.

Signed-off-by: Christoffer Dall <christoffer.dall@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20191212195055.5541-1-christoffer.dall@arm.com
2020-01-19 16:05:10 +00:00
..
asm KVM: arm64: Only sign-extend MMIO up to register width 2020-01-19 16:05:10 +00:00
debug Renesas ARM SoC updates for v5.4 2019-09-03 23:12:58 +02:00
uapi/asm KVM: arm/arm64: Allow user injection of external data aborts 2019-10-21 18:59:51 +01:00