arm64: Cleanup VTCR_EL2 and VTTBR field values
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Mon, 4 Apr 2016 10:53:52 +0000 (11:53 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 21 Apr 2016 12:56:41 +0000 (14:56 +0200)
commitacd05010400215b281a9197a889bec3e67998654
tree6b17b532bd87b360154abdda2741483d5f87fbba
parenta563f7598198b8389e00451ef6f3f1c12efbfb99
arm64: Cleanup VTCR_EL2 and VTTBR field values

We share most of the bits for VTCR_EL2 for different page sizes,
except for the TG0 value and the entry level value. This patch
makes the definitions a bit more cleaner to reflect this fact.

Also cleans up the VTTBR_X calculation. No functional changes.

Cc: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
arch/arm64/include/asm/kvm_arm.h