Skip to content

Commit

Permalink
arm64: KVM: CPU specific 32bit coprocessor access
Browse files Browse the repository at this point in the history
Enable handling of CPU specific 32bit coprocessor access. Not much
here either.

Reviewed-by: Christopher Covington <cov@codeaurora.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
  • Loading branch information
Marc Zyngier committed Jun 12, 2013
1 parent 62a89c4 commit 06c7654
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions arch/arm64/kvm/sys_regs_generic_v8.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,21 @@ static const struct sys_reg_desc genericv8_sys_regs[] = {
access_actlr, reset_actlr, ACTLR_EL1 },
};

static const struct sys_reg_desc genericv8_cp15_regs[] = {
/* ACTLR */
{ Op1(0b000), CRn(0b0001), CRm(0b0000), Op2(0b001),
access_actlr },
};

static struct kvm_sys_reg_target_table genericv8_target_table = {
.table64 = {
.table = genericv8_sys_regs,
.num = ARRAY_SIZE(genericv8_sys_regs),
},
.table32 = {
.table = genericv8_cp15_regs,
.num = ARRAY_SIZE(genericv8_cp15_regs),
},
};

static int __init sys_reg_genericv8_init(void)
Expand Down

0 comments on commit 06c7654

Please sign in to comment.