path: root/arch/arm64/kvm/sys_regs_generic_v8.c
diff options
authorMark Rutland <mark.rutland@arm.com>2017-01-19 18:39:39 +0000
committerMark Rutland <mark.rutland@arm.com>2017-03-22 18:38:26 +0000
commit851050a573e1d2c192e6f59921e36fcbfcbcf207 (patch)
treea321ab8c393bcd0d762f6027c2cc4f9b85b7d738 /arch/arm64/kvm/sys_regs_generic_v8.c
parentKVM: arm64: use common invariant sysreg definitions (diff)
KVM: arm64: Use common sysreg definitions
Now that we have common definitions for the remaining register encodings required by KVM, make the KVM code use these, simplifying the sys_reg_descs table and the genericv8_sys_regs table. Signed-off-by: Mark Rutland <mark.rutland@arm.com> Acked-by: Christoffer Dall <christoffer.dall@linaro.org> Cc: Marc Zyngier <marc.zyngier@arm.com> Cc: kvmarm@lists.cs.columbia.edu
Diffstat (limited to '')
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm64/kvm/sys_regs_generic_v8.c b/arch/arm64/kvm/sys_regs_generic_v8.c
index 46af7186bca6..969ade1d333d 100644
--- a/arch/arm64/kvm/sys_regs_generic_v8.c
+++ b/arch/arm64/kvm/sys_regs_generic_v8.c
@@ -52,9 +52,7 @@ static void reset_actlr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r)
* Important: Must be sorted ascending by Op0, Op1, CRn, CRm, Op2
static const struct sys_reg_desc genericv8_sys_regs[] = {
- /* ACTLR_EL1 */
- { Op0(0b11), Op1(0b000), CRn(0b0001), CRm(0b0000), Op2(0b001),
- access_actlr, reset_actlr, ACTLR_EL1 },
+ { SYS_DESC(SYS_ACTLR_EL1), access_actlr, reset_actlr, ACTLR_EL1 },
static const struct sys_reg_desc genericv8_cp15_regs[] = {