diff options
author | Mark Rutland <mark.rutland@arm.com> | 2017-01-19 21:39:39 +0300 |
---|---|---|
committer | Mark Rutland <mark.rutland@arm.com> | 2017-03-22 21:38:26 +0300 |
commit | 851050a573e1d2c192e6f59921e36fcbfcbcf207 (patch) | |
tree | a321ab8c393bcd0d762f6027c2cc4f9b85b7d738 /arch/arm64/kvm/sys_regs_generic_v8.c | |
parent | 0d449541c185f23347feed6f9ea1994fd1707a06 (diff) | |
download | linux-851050a573e1d2c192e6f59921e36fcbfcbcf207.tar.xz |
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 'arch/arm64/kvm/sys_regs_generic_v8.c')
-rw-r--r-- | arch/arm64/kvm/sys_regs_generic_v8.c | 4 |
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[] = { |